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. How much time it will take approximately ?

Hi,

     can anyone is having idea that  how much time it will
take approximately  to connect from one- WiFi to another WiFi. Suppose i was
connected to
     one WiFi when it is out range then how much  time the device will take
to connect to another WiFi router  which is in range...?

-- 

2. How to pass configuration parameters to custom views during construction

Hello Guys,

I defined a customer view, e.g. MyView, which need to be constructed
with some own parameter, e.g. line number in the view, an integer.
The view will be employed by my activity, MyActivity.
It seems that the View's constructors are fixed and will be called by
the system, and I can do nothing on it.

The question is:
         How to pass the integer to the view during construction from
the activity, while I've known the integer in MyActivity?

Thanks in advance.
Mike

-- 

3. Memory managing my list adapter

4. Develop Software or Systems? Receive Guaranteed $10 or have $10 Donated to FIRST; Chance to Win an iPad 2

5. Using a 9 patch as a listSelector affects padding

6. Google Maps

7. Deserialization issue in Jackson Parser + java.lang.NoSuchMethodException