You cannot safely register listeners from an IntentService
, as the IntentService
goes away as soon as onHandleIntent()
(a.k.a., doWakefulWork()
) completes. Instead, you will need to use a regular service, plus handle details like timeouts (e.g., the user is in a basement and cannot get a GPS signal).