i have an application with many Actvities , i need to call each of those activities with paramaters to retrieve data from database or a file , but if i call an activity a second time i dont want that the activity retrieve data again cos it can be boring for users .
Example :
- i have main activity with menu that can call 3 activities : A,B and C
- each one of them need parameters to access database
- in each activity i have a link to navigate between them , i need to
call back the activities then from stack so no need that they access
database again.
Any suggestions are greatly appreciated.
If you are not finishing your activities, data will persist. You dont have to do anything additional.
Otherwise you can extend Application class and save your data into some data structure there, which you can retrieve any time later.