Wednesday, November 10, 2010

Re: [android-developers] AlarmManager starting service, API Level?

On Wed, Nov 10, 2010 at 7:00 PM, Henrik Lindqvist
<henrik.lindqvist@gmail.com> wrote:
> I've read comment that the AlarmManager in a earlier API version
> couldn't start services. Prior to which API Level was that?

I don't know where you read that. PendingIntents have been able to
start services since the beginning.

I am a bit nervous about how WakeLocks work when starting a service
directly versus going through a BroadcastReceiver, but otherwise
AlarmManager starting services works like a champ. It's great for app
widgets, if you have an IntentService that is doing the updates and
you are controlling the update schedule yourself rather than using
android:updatePeriodMillis, for example.

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

_Android Programming Tutorials_ Version 3.0.1 Available!

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate