Tuesday, December 28, 2010

Re: [android-developers] Re: Restarting Application Service

As the documentation says, setForeground has been replaced with startForeground.

On Tue, Dec 28, 2010 at 7:14 PM, Prasath <prasath.balakrishnan@gmail.com> wrote:
i think i can use START_STICKY in case of the below scenario.

"This mode makes sense for things that will be explicitly started and
stopped to run for arbitrary periods of time, such as a service
performing background music playback"

since i'm hosting the widget from the device startup. i expect my
service to be alive all the time.

i'm facing one problem with the service .. in froyo it is getting
killed by framework. i have absolutely no control over it.
i cannot use setForeground api anymore. this is now a no-op.



On Dec 16, 3:34 am, TreKing <treking...@gmail.com> wrote:
> On Mon, Dec 13, 2010 at 9:41 PM, Prasath <prasath.balakrish...@gmail.com>wrote:
>
> > how will i restart it.
>
> http://developer.android.com/reference/android/app/Service.html#START...
>
> -------------------------------------------------------------------------------------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en



--
Dianne Hackborn
Android framework engineer
hackbod@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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment