Android reset activity component state on navigation back
Posted
by
Aure77
on Stack Overflow
See other posts from Stack Overflow
or by Aure77
Published on 2012-06-04T15:52:42Z
Indexed on
2012/06/04
16:43 UTC
Read the original article
Hit count: 153
I have 2 activities in my application. In activity1, I set some configuration and I modify the state of some component (ex: set button state disabled). And I navigate to activity2.
In activity2 I do some stuff and at end, I finish this activity and come back to activity1.
But In activity1, my components state are the same when I leave this activity.
How to reset the components state with valuesdeclared in XML file (layout) ?
© Stack Overflow or respective owner