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. Market - "download unsuccessful"

Hello,

I have published my app on Android Market. I have successfully
downloaded and installed the app from Market on my Moto Droid 10 days
ago. My beta tester #1 successfully downloaded and installed the app
from Market on his Samsung Galaxy 8 days ago. My beta tester #2 gets
"download unsuccessful" when she tries to dowload app from Market on
her Motorola Droid X at 2010-10-28 4pm Central Std time USA (10pm
GMT). She tried several times over a 30 minute period. When I
uninstalled and tried to download my app during this same time period,
it took longer than I expected, then finished and said Google Maps had
"successfully updated". No mention that my app did or did not install.
My app is not installed on my phone now.

Developer's Console shows no problem, 20 downloads, 4 active, no
errors, no comments. (This app is industry specific and not workable
without subscription to a website, etc.)

Does Market work perfectly everytime? Does it have good times and bad
times? If you think it may be my app that is the problem, what / where
should I look for as the problem?

Thanks, John Brown

-- 

2. CSS in Android

I want to know how to use CSS to control the style of HTML.
it looks like anything defined in CSS does not apply to HTML.
here is the mytest.html

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://
www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> TEST PAGE </title>

<link type="text/css" rel="stylesheet" media="only screen and (max-
device-width: 480px)" href="android.css" />
<link rel="stylesheet" href="android.css" media="handheld" type="text/
css" />

</head>
<body>
<br><br>
<h1>This header is 36 pt</h1>
<br><br>
go to
<br><br>
</body>
</html>



here is the android.css:

<style>
@media handheld {
   body {
     background-color:yellow;
   }
 h1
{
font-size:35pt;
color:blue;

}
 }
 @media only screen and (max-device-width: 480px) {
   body {
      background-color:yellow;
   }
     h1
{
font-size:36pt;
color:blue;

}
 }
</style>

-- 

3. AdMob Analytics?

4. How to figure out who is causing GC on my device?

5. How i can control the Screen On/Off & Lock/Unlock in Donut( SDK 1.6)

6. How to debug CursorIndexOutOfBoundsException with ListView?

7. Problems with intent filters