5
(1)

How to close the app and remove from the history in Xamarin Android?

Here is the code that helps you to close the app and remove it from the history or resent app using Xamarin Android.

if (Build.VERSION.SdkInt >= Android.OS.BuildVersionCodes.Lollipop)
                          {
                              this.FinishAndRemoveTask();
                          }
                          else
                          {
                              this.Finish();
                          }

 

How useful was this post?

Click on a star to rate it!

Average rating 5 / 5. Vote count: 1

As you found this post useful...

Share this post on social media!

We are sorry that this post was not useful for you!

Let us improve this post!