Android native implementation for force stop in setting-->manage applications

35 views
Skip to first unread message

ashiq sayyad

unread,
Feb 9, 2012, 5:17:15 AM2/9/12
to android-platform, android-d...@googlegroups.com
Hi All,

I want to achieve force stop functionality in my app on close button
click.

Can anybody tell me how android handles force stop in settings--
>manage applications screen.

I tried using System.exit(0) & Process.killProcess(Process.myPid());
But it kills the current activity & app launches the previous
activity..

Thanks & Regards,
Ashiq Sayyad

Kristopher Micinski

unread,
Feb 9, 2012, 10:40:36 AM2/9/12
to android-...@googlegroups.com
Usually if you want to do this then something is wrong in the design of your app, or you don't understand the way that Android works.  Usually what you want to do is accomplished by an Activity.finish(), perhaps that what you want.

kris 
Reply all
Reply to author
Forward
0 new messages