android - Is it possible to reuse an activity without destroying it? -


is possible reuse activity without destroying it? example, after press button, activity disappear , app returns previous activity. disappeared activity still in memory , can fast displayed without re-creating it.

this reason why have such idea: use activity written others. found there memory leaks couldn't find them because have no source code. want find workaround.

its possible if don't kill activity:

open 1, 2, 3 activities 1 > 2 > 3    #2 // call startactivity 2, don't call finish() in 3 1 > 2  open #4 activity 1 > 2 > 4  #2 1 > 2  restore #3 activity // call startactivity 3 intent intent.setflags(intent.flag_activity_reorder_to_front); 1 > 2 > 3 

here copy of activity 3 left it.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -