1

android - better way for activity navigation

view story
linux-howto

http://stackoverflow.com – My app having the 3 activities(A1,A2 and A3). The activities to be stay in the background when it goes another activity. For some instance I should redirect to A1 from A3. For this, I used the one Boolean counter. I set to true in A3 for that instance. In A2 onresume i checked the boolean value if it is true then i finished that activity(A2). finally A1 is onResume. But i think this is one solution but it's not better solution. can anyone suggest the better solution? A3 Activity status = true;// for some instance A2 Activity onResume() { if(status){finish();} } //A1 is onResumed than (HowTos)