[mono-android] Resuming app always reverts to first activity

Randy Ficker randyficker at gmail.com
Wed Nov 2 17:48:21 EDT 2011


I ran a simple test:

 

1.       Create a fresh Mono for Android project.  Add a second activity,
and make the button of the default activity launch the second activity.

2.       Make an identical app in Eclipse using pure Java.

3.       Launch the Java app, tap the button to go to the second activity.
Now press Home, then re-launch the app.  Note that the app comes up on the
second activity.

4.       Launch the Mono for Android app, tap the button to go to the second
activity.  Now press Home, then re-launch the app.  The app comes up on the
first activity.

 

This surprised me.  Why is there a difference?  And more importantly, how
can Mono for Android apps resume where they left off like Java apps do? 

 

Searching has turned up this question on StackOverflow
<http://stackoverflow.com/questions/6114480/how-to-resume-android-app-where-
it-was-suspended-app-not-activity>  and I also found it asked a while ago on
this alias, but neither has an answer to these questions.

 

Thanks!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodroid/attachments/20111102/1562f77a/attachment-0001.html 


More information about the Monodroid mailing list