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. Getting driving directions from application


In my application I want to show route between two points and display
points (something like POI's from my own source) the user will be
riding through.

How can I get the directions (polyline) from GoogleMaps? Application
will not provide any navigation so I suppose that there are no "leagal
obstacles" for doing this (correct me please if I'm wrong)


2. How to Start application On-Install

I want to start my application just after it gets installed on the
device. Is there any way out in Android to do so.
I was wondering if there is any receiver to get informed on package

3. Is Android complaint with VCARD 2.1 specification ?

4. How to drop the AppWidget to Home Screen?

5. Access protected member variables in Android classes

6. how to capture event FINISH LOADING ListView and GridView

7. Access protected member variables in Android classes