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. message during install: "... has an ealier definition; blocking out"

what does this mean?

the information is not sufficient, where have those definitions been
found?
In the one project that during install caused the message, in the
android.jar in other project apk's?

I double checked my sources and libs and can't find classes that are
defined more that once.
--~--~---------~--~----~------------~-------~--~----~

2. How to get the current city/country name?

Is it possible to get the city name(I mean the city where the phone is
in at the current time)?

I need it as a parameter for google weather API, like this:

http://www.google.com/ig/api?weather=city_name,country_name

I tried browsing the classes in "android.location" package but have
yet to find a method to get the 'exact city name' and country name
needed for google weather API.

Thank you in advance. =)
--~--~---------~--~----~------------~-------~--~----~

3. Is it possible to add a custom link in the "Share Picture Via" dialog?

4. The order of the onCreate Method.

5. google business services on android

6. Europeans considering unlocking a UK G1

7. TextView breaks when adding using a string of over 4500 characters