On Sun, Sep 12, 2010 at 12:09 PM, Mark Murphy <mmur...@commonsware.com> wrote:
> On Sun, Sep 12, 2010 at 5:23 AM, Federico Paolinelli <fedep...@gmail.com> 
> wrote:
>> I think a classic service would be more suitable than an IntentService
>> for this purpouse.
>
> Correct.
>
>> The intent service, and therefore your wakeful one, does its job and
>> then dies after the onHandleIntent is called.
>> If you implement a locationlistener, you'll never know (or, you can't
>> predict) when you will get the first location update (which is also
>> the one you need, at least until the next alarm triggering), so you
>> need something that stays alive until it gets the first fix.
>
> Also correct.
>
>> However, also in this situation, I can start the service and make it
>> kill himself where the location is found (or after a reasonable amount
>> of time).
>
> Still correct.
>
> --


I'm starting to understand something about this stuff :-)
Thanks again.

   Federico

-- 
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

Reply via email to