Re: [android-developers] How to exit the application..?

2010-12-28 Thread prateek suhane
simply use onClickEvent System.exit(0); On Mon, Dec 27, 2010 at 2:10 PM, Abhilash baddam < abhilash.androiddevelo...@gmail.com> wrote: > Hi , > > I am new to android. How can we exit from application...For example if > we have 3 activities each activity consists one button..when we click o

Re: [android-developers] How to exit the application..?

2010-12-28 Thread Nandlal Viranni
Use this.finish() OR activityname.this.finish() method for this. On Mon, Dec 27, 2010 at 2:10 PM, Abhilash baddam < abhilash.androiddevelo...@gmail.com> wrote: > Hi , > > I am new to android. How can we exit from application...For example if > we have 3 activities each activity consists o

Re: [android-developers] How to exit the application..?

2010-12-27 Thread Mark Murphy
On Mon, Dec 27, 2010 at 3:40 AM, Abhilash baddam wrote: > Hi , >      I am new to android. How can we exit from application...For example if > we have 3 activities  each activity consists one button..when we click on a > button which may be from any activity, i want to exit from application and >

Re: [android-developers] How to exit the application..?

2010-12-27 Thread Kostya Vasilyev
Call finish() on an activity you would like to, well, finish. 27.12.2010 11:40, Abhilash baddam пишет: Hi , I am new to android. How can we exit from application...For example if we have 3 activities each activity consists one button..when we click on a button which may be from any activity,

[android-developers] How to exit the application..?

2010-12-27 Thread Abhilash baddam
Hi , I am new to android. How can we exit from application...For example if we have 3 activities each activity consists one button..when we click on a button which may be from any activity, i want to exit from application and it should go home screen. again if we start the application from e

[android-developers] How to exit the application completely from any screen

2008-09-13 Thread elephantbug
Hi, Is there a way to exit the application completely at any place? call finish() will only exit the current activity. I tried to getApplication() from activity and call its onTerminate() directly... but it seems not working at all... Anyone can give any clue how to do it? Thanks --~--~