Service not able to download network data while in standby

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


Sponsored Links
 Hi!

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
standby?

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....

-Christer
--~--~---------~--~----~------------~-------~--~----~



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
xavieruni...@gmail.comxavierunited@hotmail.comtruestar...@yahoo.com
"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. Do you have an example of layout like contact's form (add) ? (version 1.5)

Hi,

I seen the apiDemos but i didn't find the same form like the contact's
form (add).
I don't know, if it's a ExpandableListView or a activityList or ...
Do you have an example in xml or/and java ?

Thanks!
Karima
--~--~---------~--~----~------------~-------~--~----~

2. Forecast widget for Android 1.5 (with source!)

I've been working with the AppWidget framework over the past few
months, and I wrote an in-depth example showing off all the various
features of the framework.  It's a forecast widget that shows the
weather in locations of your choice.  It offers multiple
configurations, and can handle several widgets at once.

http://www.jsharkey.org/blog/2009/04/24/forecast-widget-for-android-15-with-source/

And you can grab the source from Google Code under an Apache 2.0
license:

http://code.google.com/p/android-sky/source/browse/#svn/trunk/Sky

Feel free to ping me here if you have any questions about the code or
widgets in general.  :)

j


--~--~---------~--~----~------------~-------~--~----~

3. Problem with Android Browser Application

4. G1 in the UK

5. Here is some sample code for a live folder example

6. page flipping error on Android Port to TI OMAP 3503

7. page flipping error on Android Port to TI OMAP 3503