Dianne,

Are there guarantees that the wake lock is held long enough for the PendingIntent tied to the alarm to actually be delivered?

Such as starting a service, triggering a broadcast receiver?

-- Kostya

11.11.2010 5:05, Dianne Hackborn ?????:
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 <[email protected] <mailto:[email protected]>> wrote:

    Thank. I'll sleep well tonight knowing raptors are extinct.

    On Nov 11, 1:30 am, Mark Murphy <[email protected]
    <mailto:[email protected]>> wrote:
    > On Wed, Nov 10, 2010 at 7:27 PM, Henrik Lindqvist
    >
    > <[email protected] <mailto:[email protected]>>
    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
    
<http://github.com/commonsguyhttp://commonsware.com/blog%7Chttp://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
    [email protected]
    <mailto:[email protected]>
    To unsubscribe from this group, send email to
    [email protected]
    <mailto:android-developers%[email protected]>
    For more options, visit this group at
    http://groups.google.com/group/android-developers?hl=en




--
Dianne Hackborn
Android framework engineer
[email protected] <mailto:[email protected]>

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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

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

Reply via email to