System.exit(0);

Gets you out of anywhere to home screen :).

Regards
Sandeep
On Dec 27, 4:43 pm, Manoj Maurya <manojk.mau...@gmail.com> wrote:
> you have to call finish() whenever u want to exit.
>
> Thanks
> Manoj Kumar Maurya
>
> > any help please...
>
> > 2010/12/27 Abhilash baddam <abhilash.androiddevelo...@gmail.com>
>
> >> 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 <victor.scherb...@gmail.com>
>
> >> 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
> >>> <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
> >>> 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 android-developers@googlegroups.com
> >>> To unsubscribe from this group, send email to
> >>> android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
>
> <android-developers%2bunsubscr...@googlegroups.com<android-developers%252bunsubscr...@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<android-developers%2bunsubscr...@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

Reply via email to