Service not able to download network data while in standby

by ChisterNordvik » Mon, 15 Dec 2008 01:54:55 GMT

Sponsored Links

I have a service polling data at regular time intervals and this works
great except when the phone goes into standby. Then the service never
runs the timer thread and it never receives data. How does the SMS/
Email application do this since I get those notifications while in

When I did a Windows Mobile application this was just the same, and I
had to resort to a third party timer (SDF) to solve this....


Service not able to download network data while in standby

by Xavier Mathews » Mon, 15 Dec 2008 09:24:27 GMT

 Try the alarm/alert manager. When in sms and device on stand by it
does not alert you unless your device is compatiable with gmail sms or
another email service.

Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
"Fear of a name, only increases fear of the thing itself."


Sponsored Links

Service not able to download network data while in standby

by MrChaz » Wed, 17 Dec 2008 02:34:50 GMT

 As the others have said, use the AlarmManager.
A couple of other things which may be of use to you if your process
takes a long time

Use the PowerManager to get and aquire a WakeLock - this will stop the
phone from going to sleep whilst you're doing stuff.
Use the WifiManager to get and aquire a WifiLock - this will keep the
wireless connected whilst you're doing stuff.

Don't forget to release the WakeLock and WifiLock when you're done.


Other Threads

1. Is it possible for my application to add items the the System Setup menu?

Currently I have a "setup" activity for I application.   Is it
possible to instead add something to the system Setup for my



2. Easy way to delete a bitmap?

What is the easiest way to remove a bitmap after I've drawn it to the



4. Can I run pure Java jars on Android?

5. How to get reference of (SQLiteDatabase) to use android contact database

6. How to update kernel image (Kernel-qemu) on Emulator

7. How to download android source code in windows machine