[android-developers] Re: how to exit from app

2012-08-29 Thread Jason Sesso
Do you need all of the other activities? You can put finish() on the ones that you are leaving when you go to the next one. On Wednesday, August 29, 2012 2:15:02 AM UTC-7, Sadhna Upadhyay wrote: Hi everybody, can some one tell me that how to exit from whole application when user click

Re: [android-developers] Re: how to exit from app

2012-08-29 Thread Amey Bapat
try system.exit(0); On Wed, Aug 29, 2012 at 2:51 PM, Jason Sesso djse...@gmail.com wrote: Do you need all of the other activities? You can put finish() on the ones that you are leaving when you go to the next one. On Wednesday, August 29, 2012 2:15:02 AM UTC-7, Sadhna Upadhyay wrote: Hi

Re: [android-developers] Re: how to exit from app

2012-08-29 Thread Asheesh Arya
button = (Button)findViewById(R.id.Button02);//exit button if(button != null){ button.setOnClickListener(new View.OnClickListener(){ public void onClick(View v) { // TODO Auto-generated method stub

Re: [android-developers] Re: how to exit from app

2012-08-29 Thread Asheesh Arya
Activity m_activity = this; button = (Button)findViewById(R.id.Button02);//exit button if(button != null){ button.setOnClickListener(new View.OnClickListener(){ public void onClick(View v) { // TODO