Retain Android Activity State When Go To Detail From List ActivityList.java--->ActivityDetail.java -->Back to ActivityList.java -
i facing strange issue. have 1 list binding on activitylist.java page use of 1 adapter. in adapter on click of viewbutton calling activitydetail.java . when press button , comes activitylist.java variables , activity state lost. want retain same when come activitydetail.java.
activitylist.java--->
_lstcity;
i getting city list database , assigning _lstcity. when came activitydetail.java want use same variable don't need go database again n again.
a big in advance.
you can save data dont wanna loss on onsaveinstancestate
method respore on onrestoreinstancestate
.
and yes, better post code.
Comments
Post a Comment