Yes Mark. The GUI wont be running when the alarm goes off. On receipt
of the alarm, i want to start an activity.

So, i think i will need to use alarm manager as the choice, as i want
the device to wake up when the alarm goes off.

On 1/19/10, Mark Murphy <[email protected]> wrote:
>> Interesting Mark... is there no way to have something wake/start an app up
>> when a condition occurs?
>
> Define "condition". The OP was inquiring about time, which I would not
> call a "condition".
>
>> I was reading the blog on Screebl, it seemed like
>> with the Location support they can activate based on the location or other
>> conditions of the device. I wasn't under the impression that app was
>> running
>> all the time.. or that it might be a service running in the background?
>
> I do not know off the top of my head if and when GPS position changes will
> wake up the device.
>
>> On a slightly different note, if you do run a service all the time, that
>> basically either waits for a timer, or waits for some condition, such as a
>> GPS location, does that drain battery much?
>
> The key to battery life is that you want the phone in sleep mode. Hence,
> depending on how the service is "waiting", it may need to force the device
> to stay awake, which is awful for battery life.
>
> If you are interested in this subject, you really should watch Jeff
> Sharkey's "Coding for Life...Battery Life, That Is" presentation from the
> 2009 Google I/O conference. There's a YouTube video of it out there.
>
>> I've not looked into the
>> Location api, but it sounded like Location would send out a message that a
>> service could listen for.. as if you could say "when the location of this
>> device is 'around' this location.. call me". Something like that?
>
> That certainly exists, but I have not experimented with it recently, let
> alone with the device in sleep mode.
>
> Again, the OP was inquiring about timers, so my reply was focused on timers.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com
> Android App Developer Books: http://commonsware.com/books.html
>
>
>
-- 
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