xamarin.android - How to start activity at the top of stack instead of launcher activity in Xamarin android app -


i developing android app using xamarin. in app, launch activity started go activity b launch activity. when pause activity b clicking on "home" button , try restart app, app starts launch activity instead of activity b paused recently. want activity b started after reopen app.

how can achieve this? idea?

here way can removed activity activity stack , finished when user navigates away.

[activity(label = "launch activity", icon = "@mipmap/icon", mainlauncher = true, nohistory = true)] 

you should make sure add nohistory = true activity attribute in launcher.cs

to read more attribute follow below link

property/android.app.activityattribute.nohistory/


Comments