0

STACK_TRACE=java.lang.IllegalStateException: Not allowed to start service Intent {LocationService.SmartGeolocation }: app is in background

I met this error when developing an app that updates user's location every second and draws a path for the user as well. Any help would be much appreciated.

Trenton McKinney
  • 56,955
  • 33
  • 144
  • 158
yihan
  • 29
  • 1
  • 4
  • possible duplicate https://stackoverflow.com/questions/46445265/android-8-0-java-lang-illegalstateexception-not-allowed-to-start-service-inten – L2_Paver Oct 15 '19 at 01:25
  • Possible duplicate of [Android 8.0: java.lang.IllegalStateException: Not allowed to start service Intent](https://stackoverflow.com/questions/46445265/android-8-0-java-lang-illegalstateexception-not-allowed-to-start-service-inten) – slfan Oct 15 '19 at 04:26

0 Answers0