I suggest that you use a new action for each “screen” that is significantly different from another screen (both for the appearance and for the data associated with it). This gives you easier control, and you don’t need to mess up your code with a lot of variables to define different states. Using various actions, you usually do not need to worry about starting in an unwanted or even undefined state.
To exchange data between actions, you can use putExtra () to add “simple” data to INTENTor for more complex data, you can extend Application and use this instance as a singleton, which you can then get through(MyApplication)getApplication();
source
share