Re: [android-beginners] Unable to release partial wake lock in service

2010-07-25 Thread Nick Richardson
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

[android-beginners] Unable to release partial wake lock in service

2010-07-24 Thread Bret Foreman
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)