If i'm understanding you correctly, you want the service to close/stop when
you tell it to? If that is the case, try calling stopSelf() after you
release your wake lock... This should cause the service to "self terminate"
and close.
On Sat, Jul 24, 2010 at 10:15 AM, Bret Foreman wrote:
> I'm usi
I'm using the following code inside OnStartCommand of my service:
wakelock =
myPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK ,
getString(R.string.app_name) );
try {
wakelock.acquire();
wakelockAcquired = true;
} catch (Exception e)
2 matches
Mail list logo