On Sep 27, 2012, at 2:56 AM, MysteriX <[email protected]> wrote:
> hi, thanks for the answers.. but i have a problem again. when i use Finish()
> then only the active activity shuts down...iam calling many activitys this
> way:
>
> Intent intentMainMenu = new Intent(this, typeof(frmMainMenu));
> StartActivity(intentMainMenu);
StartActivity() places a _new_ activity on the Activity Stack:
http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle
http://developer.android.com/guide/components/tasks-and-back-stack.html
Thus, when the `frmMainMenu` Finish()es, the next topmost element on the
Activity stack will become topmost, i.e. the current Activity.
If you want the current Activity to likewise exit, you should call Finish()
within the caller as well, or use StartActivityForResult()/etc instead of just
StartActivity().
- Jon
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid