Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am facing strange issue. I have one List which i am binding on ActivityList.java page with the use of one adapter. In adapter on the click of ViewButton I am calling ActivityDetail.java . But when press back button and comes to ActivityList.java all my variables and activity state is lost. I want to retain the same when I come back from ActivityDetail.java.

ActivityList.java--->

_lstCity;

I am getting city list from database and assigning it to _lstCity. When I came back from activityDetail.java I want to use the same variable so that I don't need to go to database again and again.

A big thanks in advance.
Posted
Updated 27-Jul-15 6:33am
v2
Comments
Richard MacCutchan 27-Jul-15 11:06am    
Well unless you show us some code we are not going to be able to guess what you are doing wrong.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900