Re: [android-developers] terminating android application

2013-01-03 Thread Tamil Arasi
Hi,

you use the below code i hope this is help to u..


public boolean onKeyDown(int keyCode, KeyEvent event)
{
if (keyCode == KeyEvent.KEYCODE_BACK)
{
moveTaskToBack(true);
return true;
}
return super.onKeyDown(keyCode, event);
}




On Wed, Jan 2, 2013 at 8:51 PM, 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(android.os.Process.myPid());
>
> these are only close te  current Activity
>
> --
> 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

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

Re: [android-developers] terminating android application

2013-01-02 Thread sree android
you can write finish() method end of the activity.

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

[android-developers] terminating android application

2013-01-02 Thread 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.killProcess(android.os.Process.myPid());

these are only close te  current Activity

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