Tuesday, February 11, 2014
Empty problems in activity android
I now have a main activity as an entry, then there is the entrance activity automatically trigger other activity.
For example, after the main MainActivity start, each five minutes will trigger a new Temp01Activity or Temp02Activity or, Temp03Activity.
With running the program, there must be a lot of Temp01Activity or Temp02Activity or, Temp03Activity
in activity stack
I hope MainActivity, the trigger every five minutes before the new activity, the activity of the previously empty (reserved main activity)
Oh, how do I ask?
Reply:
Make a List put Activity, traversing destruction
Reply:
You can look up Intent.flags
You might find a way.
Reply:
Some do not know if the activity is not accepted will be destroy yet. . Reception is not only a matter of time to run an activity it
Reply:
MainActivity when you start another activity to add a tag Intent.FLAG_ACTIVITY_NO_HISTORY , so it will not save the activity of the stack.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment