.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 1 year. 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.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.