If it's for a periodic operation, please consider basing this on Alarm
Service, rather than leaving your app running all of the time consuming
resources.

On Sun, Oct 4, 2009 at 10:58 PM, Tim <vkan...@gmail.com> wrote:

>
> Hello,
>
> I am very new beginner, and I am designing a small application as
> below.
>
> - After a user starts the application, he/she can click the start
> button to start a background task. (e.g. retrieving the news headlines
> periodically, then do something...)
>
> - Even after the user quits the application, the background task still
> running.
>
> - To stop the background task, the user needs to run the application
> again, and clicks the stop button to stop the background task.
>
> In the above scenario, what API should I use ? (Local Service
> Binding ? Remote Service Binding ? Handler ?)
>
> Please help me. Thank you very much.
>
> >
>


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

Reply via email to