Hi,

Is there a way to keep an Activity in memory after the user hits the
back button on it? Example:

  ActivityMainMenu (entry point)
     |
     --- ActivitySearch

ActivitySearch is used frequently in my app, however after the user
starts it up, then hits the back button, it's destroyed, and the next
visit to it requires it be built from scratch again.

If after its first construction, I could just request it be paused
instead of destroyed on the back button, then I could reuse it. Is
there a sensible way of doing this?

The only way I could think of reasonably doing it is to combine
ActivitySearch with ActivityMainMenu into a single activity, and
simply switch views when the user chooses search, but this is probably
a bad design.

Thanks

-- 
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

Reply via email to