No Network Connectivity in Service/AlarmManager Process.

by Mark Murphy » Thu, 25 Mar 2010 05:59:34 GMT


Sponsored Links
 


Cellular data should be always on, if I understand correctly.


Bzzzzt.


Ding, ding, ding!

:-)


IntentService in general is not designed for you to fork other threads.
Remember: the IntentService component will call stopSelf() as soon as
onHandleIntent() returns, if there is no other Intent queued up to be
processed.

Since IntentService does its work (onHandleIntent()) in a background
thread, I don't know why you're forking yet another thread. I'd just do
the HTTP operations in doWakefulWork().

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

Android Development Wiki:  http://wiki.andmob.org 

--



No Network Connectivity in Service/AlarmManager Process.

by Mark Murphy » Sat, 27 Mar 2010 21:16:37 GMT


 


I don't know where you have seen that, but I am not aware of such a
limitation. Got a link?

The only times I know of when alarms get nuked are:

-- on a reboot, all alarms go "poof!"

-- if the user has a so-called "task killer" app and kills your app that
way, your alarms go "poof!" (though alarms from other un-killed apps
remain in place)

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

Android Training in US: 14-18 June 2010:  http://bignerdranch.com 

--


Sponsored Links


No Network Connectivity in Service/AlarmManager Process.

by Mark Murphy » Sat, 27 Mar 2010 21:18:44 GMT


 


AFAIK, AlarmManager alarms are not dependent upon the particular
component that created them.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

_The Busy Coder's Guide to Android Development_ Version 3.0
Available!

--



Other Threads

1. Android Device Seeding Program - Differences in phone for developers?

Why? I visited a Google Technology Usergroup meeting where Google
handed out Nexus phones to all visitors, and they were identical to
the one that I had ordered from their online store.







-- 

2. G bisa download d market

Dari kemaren data coba buat download d market pas download starting melulu
di kira cmn koneksi lg jelek tp knp mpe skrg masih blm bisa aja..
Apa ada yg senasib dgn Ane??
Oia provider yg ane pke c jgo merah..

-- 
"Indonesian Android Community [id-android]" 

3. Adding new XML file under layout

4. Switching views with RadioButton and saving views in Bundle

5. need help regarding map activity--showing blank graph with zoom control only no location view

6. Logout gmail?

7. For information on obtaining the source code