You are currently viewing How to close the app and remove from the history in Xamarin Android?
Xamarin

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

3
(2)

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 3 / 5. Vote count: 2

No votes so far! Be the first to rate this post.

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!

Tell us how we can improve this post?