Thanks to everyone who all shared their idea. I used Abhilash'c link i.e. http://androidsnips.blogspot.com/2010/08/finish-application.html Its working perfectly for me.
Regards Dileep On Jan 10, 4:27 pm, 20plus10 30 <[email protected]> wrote: > It wil stop the application ttally. > It kills its own proccess. > > 2011/1/10 Kostya Vasilyev <[email protected]> > > > > > And then if you have a Service component, be prepared for it to stop > > working after a period of time. > > > 10.01.2011 14:04, 20plus10 30 пишет: > > > Use this: > > > This will stop the proccess: > > > android.os.Process.killProcess(android.os.Process.myPid()); > > > /Maali > > > 2011/1/10 dilu <[email protected]> > > >> Even I tried with System.exit(0). > >> But its not working .So question is that how to completly exit the > >> application if we want to do . > > >> On Dec 29 2010, 11:10 am, Dianne Hackborn <[email protected]> wrote: > >> > No, it doesn't, it exits the process, but leaves whatever activity stack > >> is > >> > being maintained by the system. > > >> > 2010/12/28 Sandeep N M <[email protected]> > > >> > > System.exit(0); > > >> > > Gets you out of anywhere to home screen :). > > >> > > Regards > >> > > Sandeep > >> > > On Dec 27, 4:43 pm, Manoj Maurya <[email protected]> wrote: > >> > > > you have to call finish() whenever u want to exit. > > >> > > > Thanks > >> > > > Manoj Kumar Maurya > > >> > > > > any help please... > > >> > > > > 2010/12/27 Abhilash baddam <[email protected]> > > >> > > > >> Hi viktor, > > >> > > > >> What your saying is if i use finish(); method in my code, is i > >> > > > >> have to use android:launchMode="singleTask" in manifest file > >> right? > > >> > > > >> 2010/12/27 viktor <[email protected]> > > >> > > > >> You can set for every Activities android:launchMode="singleTask" > >> ; > > >> > > > >>> And if you go Home, you always restart an Activity with onCreate > >> > > > >>> state. > > >> > > > >>> On 27 Грд, 10:40, Abhilash baddam > >> > > > >>> <[email protected]> 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 > >> > > > >>> > it should go home screen. again if we start the application > >> from > >> > > > >>> emulator it > >> > > > >>> > should start from the beginning of the application. How can we > >> do > >> > > > this.? > > >> > > > >>> > Regards, > >> > > > >>> > Abhilash.B > > >> > > > >>> -- > >> > > > >>> 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]<android-developers%2bunsubs[email protected]> > >> <android-developers%[email protected]<android-developers%252b[email protected]> > > >> > > <android-developers%[email protected]<android-developers%252bu[email protected]> > >> <android-developers%[email protected]<android-developers%25[email protected]> > > >> > > > <android-developers%[email protected]<android-developers%252bu[email protected]> > >> <android-developers%[email protected]<android-developers%25[email protected]> > > >> > > <android-developers%[email protected]<android-developers%252[email protected]> > >> <android-developers%[email protected]<android-developers%[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]<android-developers%2bunsubs[email protected]> > >> <android-developers%[email protected]<android-developers%252b[email protected]> > > >> > > <android-developers%[email protected]<android-developers%252bu[email protected]> > >> <android-developers%[email protected]<android-developers%25[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]<android-developers%2bunsubs[email protected]> > >> <android-developers%[email protected]<android-developers%252b[email protected]> > > >> > > For more options, visit this group at > >> > >http://groups.google.com/group/android-developers?hl=en > > >> > -- > >> > Dianne Hackborn > >> > Android framework engineer > >> > [email protected] > > >> > Note: please don't send private questions to me, as I don't have time to > >> > provide private support, and so won't reply to such e-mails. All such > >> > questions should be posted on public forums, where I and others can see > >> and > >> > answer them.- Hide quoted text - > > >> > - Show quoted text - > > >> -- > >> 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]<android-developers%2bunsubs[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 > > > -- > > Kostya Vasilyev -- WiFi Manager + pretty widget > > --http://kmansoft.wordpress.com > > > -- > > 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]<android-developers%2bunsubs[email protected]> > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en- Hide quoted text - > > - Show quoted text - -- 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

