Service runnning while PowerManager decides to sleep ?

by Dianne Hackborn » Sat, 21 Nov 2009 04:10:46 GMT

Sponsored Links
 If you don't hold a wake lock, you can't count on the CPU running.


Service runnning while PowerManager decides to sleep ?

by Derek » Sat, 21 Nov 2009 04:22:40 GMT

 Thanks for the answer Dianne.

So, is it a good idea to acquire a WakeLock at the beginning of the
service and release it at the end just after setting the PendingIntent
through AlarmManager ?

Also, is it possible to simulate CPU to go off with Emulator ? or
forcing CPU to go off with real device connected to DDMS through USB ?


> >

Sponsored Links

Other Threads

1. GSM Timing Advance in Android

Are there any Android APIs that allow the application to retrieve the
GSM Timing Advance?



2. External peripherals emulating keyboard input

> I am trying to develop a device which would attach to my Droid and

You're not going to be able to do this at the SDK level. The folks over at
[android-porting] may be able to help you at the firmware level.

Mark Murphy (a Commons Guy)
Android App Developer Books:


3. Listview inside ScrollView doesn't expand

4. Any thing like System Gestures exists??

5. Android 2.0.1 emulator: Not able to get Proxy settings to work (tried -http-proxy and APN proxy)

6. Contacts PhoneLookup

7. manually update AppWidgetProvider's onUpdate