.NET MAUI : Get current activity on Android

If you want to access the current activity on Android you will need to use the code below:

Microsoft.Maui.ApplicationModel.Platform.CurrentActivity

They made it very easy to access it. Appreciate it!

This content has 12 months. Some of the information in this post may be out of date or no longer work. Please, read this page keeping its age in your mind.