On Wed, Sep 1, 2010 at 10:27 AM, kamiseq <[email protected]> wrote: > ok I know I can always press on phone back button, but I want to mimic > such a functionality and allow a user can choose option from option > menu.
Please do not do that. Android developers have a bad reputation for ignoring what few human interface guidelines we have. This is one of them -- do not have "close", "quit", "exit", "back", or equivalent menu options in an activity, please. > If I got this right when I call startActivity() another activity is > brought to front and caller is paused marked by GC but not distroyed. > but I could call finish() method on a caller and destroy caller once > for all, is that right? finish() will cause the activity to be paused, stopped, and destroyed. The next activity on the stack will be started, resumed, and brought to the foreground. Here, "next activity" is either the previous activity on the stack, or an activity you just started with startActivity(). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- 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

