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.

Application loses it's state after minimizing for a while


I am building an app which has two activities.. First activity lets user login to microsoft portal, second activity shows some information. When I log in and go to second activity and minimize the app for a while (couple of minutes) but after I reopen the app from tray. It redirects me to first activity, which is login activity.

Is there something that I am missing here?


  • BerayBentesenBerayBentesen TRUniversity ✭✭✭✭

    Hello @RahulPP ,

    Add this to login activity ;

    NoHistory = true

    You might use switch-case or if-else in try catch method, so if user login to system successfully make navigation to next page otherwise give some error.

Sign In or Register to comment.