java.lang.IllegalStateException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
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

    jkjk
    4448 times, last one,
    Agócs TamásAgócs Tamás
    43 times, last one,
    filipebatistafilipebatista
    193 times, last one,
    SacchiSacchi
    68 times, last one,
    Hiren AmaliyarHiren Amaliyar
    26 times, last one,
    94 more bugmates