Really thanks for your prompt reply.
basically i am .net professional moved into android..

it seemed to be little odd, but like in .net we have a method called
oncancel and if we return false the activity wont end.

do we have similar option in android....
what i wanted is if not possible service to stop when activity ends
(or back button is pressed) the service should continue in
background..

thanx in advance

Vineet

On Jun 23, 3:02 am, Mark Murphy <mmur...@commonsware.com> wrote:
> On Tue, Jun 22, 2010 at 6:00 PM, vineet <ma...@vineetyadav.com> wrote:
> > can someone help me.. i want my service to start as soon as the device
> > starts and also the service to persis and remain started.
>
> No, you don't.
>
> http://www.androidguys.com/2009/09/09/diamonds-are-forever-services-a...
>
> > it should destroy only when device switches off.
>
> That is not possible.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android Training...At Your Office:http://commonsware.com/training

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