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 <[email protected]> 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 [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to