how to handle Back Button on Android with Xamarin Forms?

damien darhk 21 Reputation points
2024-11-25T08:15:06.25+00:00

I've a multiple page app in xamarin forms, when I press the android back button, it reduce to icon the app instead to get back to previous page. I tried as here OnBackPressed in Xamarin Android but the override code is never executed, it not fire. I'm using Android 11-12-13. Any help?

Developer technologies | .NET | Xamarin
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.