android - How do I 'navigate' to an activity that's already running? -
Newbie question ... So I have two activities, cherry and apple, and each button has a button, the second one. Then back and forth
In the class "cherry" I say this:
intent = new intent (cherry, this, apple, class); startup (intent); This means that it should go to Apple. The activity of the apple has the same code.
I think what I am seeing is that every time I start the Activative Apple, it is starting a new instance instead of reactivating the apple. I have suppressed the doctor and can not get the flag or other call, which is what I want.
P> What about? It is also useful in completing activities on the back stack until it reaches the target activity.
To be clear, your activity may be even after using the flag above it can be restarted when it comes to releasing your activity memory Was destroyed in the endeavor. In other words, you still need to make sure that your activity can be restarted, take appropriate precautions at onPause and onSaveInstanceState .
Comments
Post a Comment