AdvancedAndroid_MyGarden
AdvancedAndroid_MyGarden copied to clipboard
IllegalStateException: not allowed to start service intent ... app is in background
- Min SDK = 16
- Target SDK = 28
Whenever the methods of PlantWateringService class i.e startActionWaterPlant() and startActionUpdatePlantWidgets() gets triggered, the app crashes and the log points to the line context.startService(intent)
How to resolve this issue?
- Min SDK = 16
- Target SDK = 28
Whenever the methods of
PlantWateringServiceclass i.estartActionWaterPlant()andstartActionUpdatePlantWidgets()gets triggered, the app crashes and the log points to the linecontext.startService(intent)How to resolve this issue?
there some this current SDK: 4197 ÷ 16 > there some ? SDK REAL : TIME SINGLE ROLL