Forum Xamarin.Android
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Return to program

problem Return to program clear all date
[Activity(Label = "test", MainLauncher = true, Theme = "@android:style/Theme.Light.NoTitleBar", Icon = "@drawable/Icon",AlwaysRetainTaskState=true,LaunchMode=Android.Content.PM.LaunchMode.SingleTask)]


  • CheesebaronCheesebaron DKInsider, University mod

    Welcome back @mfaridi1, like last time you asked a question please describe in more detail what it is you want. Your one sentence along with a piece of code does not make any sense. If you expect anyone to help you please put some effort in formulating your problem.

  • mfaridi1mfaridi1 GBMember

    sory,my english is bad .been pressed home button exit program been again open program,program reset . my want to continue program .not restart program

  • CheesebaronCheesebaron DKInsider, University mod

    Why are you using: LaunchMode=Android.Content.PM.LaunchMode.SingleTask? SingleTask should only be used in specialized instances. Such as Figure 4. in

    Backstack diagram

    Where you see Activity X is a SingleTask Activity, which then starts another activity, where both of them are push onto the stack. I doubt you need this kind of behaviour and you are probably looking for SingleTop instead.

Sign In or Register to comment.