android - Multiple Instance of same Activity for different Intent Object -
i have 2 activities in app:-
main activity:- shows list of city
cityactivity:- showing details of selected city.
the problem :- if select city "newyork" in mainactivity takes me cityactivity , shows newyork details.
if go , select "san francisco" takes me cityactivity , shows san francisco details.
when press of phone device takes me each of cityactivities "new york", "san francisco",... same browsers button does.
tried multiple option fix didnt helped me:-
a.) calling finish() in cityactivity.
b.) adding android:launchmode= "singleinstance" in manifest file.
want achieve here if cityactivity newyork object there in memory , try select "san francisco" city, should destroy activity "new york" intent object , create new activity "san francisco" intent object.
set intent flag " no history" when starting city activity
Comments
Post a Comment