0

I'm running an IntentService which has a SensorListener running. It seems impossible to stop the service from another activity within the app.

Is there anyway at all to stop an IntentService from outside the service?

Also, since the Listener is the only thing that is running (keeping the app from stopping), is it possible to unregister the Listener from another activity?

Thanks!

Tan Jing Yuan
  • 73
  • 2
  • 7

1 Answers1

0

It's ok now. Commonsware told me here

BroadcastReceiver within a Service not receiving broadcasts Android

that I was leaking the receiver, hence the appearance of the service not being stoppable.. IntentService cannot implement receivers

Community
  • 1
  • 1
Tan Jing Yuan
  • 73
  • 2
  • 7