Note that currently the alarm manager WILL NOT hold a wake lock for sufficient time when starting a service, so if you are using a wake up alarm you must go through a receive and do a fun dance with wake locks.
On Wed, Nov 10, 2010 at 4:39 PM, Henrik Lindqvist < henrik.lindqv...@gmail.com> wrote: > Thank. I'll sleep well tonight knowing raptors are extinct. > > On Nov 11, 1:30 am, Mark Murphy <mmur...@commonsware.com> wrote: > > On Wed, Nov 10, 2010 at 7:27 PM, Henrik Lindqvist > > > > <henrik.lindqv...@gmail.com> wrote: > > > Thanks. I'am using the AlarmManager to send PendingIntent.getService > > > with a "Explicit Intent" to an IntentService. > > > > > Read this post from July 2008: > > > > > "The "Alarm Service" sample code in ApiDemos at > > >http://code.google.com/android/samples/ApiDemos/src/com/google/androi. > .. > > > is intended to provide the best practices for this. The current > > > example is a little overly complex because of the need of the > > > intermediate receiver. In a future SDK where you can have the alarm > > > manager directly start a service, this is a lot cleaner." > > > > July of 2008 is the Jurassic era of Android development. Personally, I > > was nearly eaten by a raptor. > > > > :-) > > > > Seriously, that would have been the Android M5 pre-release. Anything > > older than, say, October 2008 should be viewed with a bit of > > skepticism. > > > > -- > > Mark Murphy (a Commons Guy)http://commonsware.com| > http://github.com/commonsguyhttp://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+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en