[android-developers] Re: terminating android application

2013-01-03 Thread Streets Of Boston
First of all: Why? Secondly: If your process is killed (through a 'kill' command issued, through System.exit or Process.killProcess), the OS may restart it (like you see sometimes when your app crashes and is starting up immediately again with the previous Activity). Also, and this depends on y

Re: [android-developers] Re: terminating android application

2013-01-03 Thread Alexey Redinskii
If your activities host in different processes, you have to kill the processes manually. Otherwise the command kills all activities hosted in one process. On Thu, Jan 3, 2013 at 11:17 AM, laxman k wrote: > it is only kill the current activity > > On Thu, Jan 3, 2013 at 1:27 PM, Sushant Das wrot

Re: [android-developers] Re: terminating android application

2013-01-03 Thread laxman k
it is only kill the current activity On Thu, Jan 3, 2013 at 1:27 PM, Sushant Das wrote: > *android.os.Process.killProcess(android.os.Process.myPid())* -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to a

[android-developers] Re: terminating android application

2013-01-02 Thread Sushant Das
You can also use *android.os.Process.killProcess(android.os.Process.myPid()) * . I hope it helps On Wednesday, January 2, 2013 8:51:45 PM UTC+5:30, laxman k wrote: > > how terminate android application from any activity and kill background > process > > i am use > finsh(); > system.exit(0); > Sy

[android-developers] Re: terminating android application

2013-01-02 Thread I4004
I think android.os.Process.killProcess(android.os.Process.myPid()); does what you want. среда, 2 января 2013 г., 18:21:45 UTC+3 пользователь laxman k написал: > > how terminate android application from any activity and kill background > process > > i am use > finsh(); > system.exit(0); > Syste

[android-developers] Re: terminating android application

2013-01-02 Thread I4004
Just use ps and kill linux commands. среда, 2 января 2013 г., 18:21:45 UTC+3 пользователь laxman k написал: > > how terminate android application from any activity and kill background > process > > i am use > finsh(); > system.exit(0); > System.runFinalizersOnExit(true); > android.os.Process.kil

[android-developers] Re: terminating android application

2013-01-02 Thread RichardC
Why are you trying to do this? On Wednesday, January 2, 2013 3:21:45 PM UTC, laxman k wrote: > > how terminate android application from any activity and kill background > process > > i am use > finsh(); > system.exit(0); > System.runFinalizersOnExit(true); > android.os.Process.killProcess(androi