java.lang.IllegalStateException

tip

You can solve this by using an actual Service instead of an IntentService

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Cannot get MediaPlayer.prepareAsync to work
    via Stack Overflow by JimCzek
    ,
  • Clarity on IntentService
    via Stack Overflow by Napster
    ,
  • Stopping CaptureCallback request
    via by Unknown author,
  • GitHub comment 5#92084569
    via GitHub by madhavajay
    ,
  • GitHub comment 2#92100787
    via GitHub by madhavajay
    ,
    • java.lang.IllegalStateException: { when=0 what=4 target=com.marianhello.react.BackgroundGeolocationModule$IncomingHandler } This message is already in use. at android.os.MessageQueue.enqueueMessage(MessageQueue.java:538) at android.os.Handler.enqueueMessage(Handler.java:631) at android.os.Handler.sendMessageAtTime(Handler.java:600) at android.os.Handler.sendMessageDelayed(Handler.java:570) at android.os.Handler.sendMessage(Handler.java:507) at android.os.Handler$MessengerImpl.send(Handler.java:721) at android.os.Messenger.send(Messenger.java:57) at com.marianhello.bgloc.LocationService.sendClientMessage(LocationService.java:369) at com.marianhello.bgloc.LocationService.handleLocation(LocationService.java:348) at com.marianhello.bgloc.AbstractLocationProvider.handleLocation(AbstractLocationProvider.java:81) at com.tenforwardconsulting.bgloc.DistanceFilterLocationProvider.onLocationChanged(DistanceFilterLocationProvider.java:318) at android.location.LocationManager$ListenerTransport._handleMessage(LocationManager.java:285)

    Users with the same issue

    jk
    4448 times, last one,
    filipebatista
    85 times, last one,
    Hiren Amaliyar
    245 times, last one,
    Agócs Tamás
    24 times, last one,
    Indri Yunita
    59 times, last one,
    94 more bugmates