retain activity state after pressing of back key

Put your problem here if it does not fit any of the other categories.

retain activity state after pressing of back key

Postby arin » Thu Nov 05, 2009 9:35 am

I have a doubt on the Activity instance...

Suppose I have a set of activities say A B C D E

A being the main(root) activity

Now the user goes in like this:

A>B>C and now the user presses the back button. So from C it goes to B. but in this way C's instance is lost in the os activity stack. How can I retain the state of C even though the user presses the back button? so that after pressing back button and going back to B when user again launches the C, it gives back the previous state.

What is the ideal modes to launch the activities? Shall I declare C as SingleTask or SingleInstance?
arin
Junior Developer
Junior Developer
 
Posts: 13
Joined: Thu Jul 09, 2009 10:17 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 21 guests