I'm trying the access the list of Processes that are running on Android OS ( I'm talking about API 27 ), using NET MAUI (NET 6) but now the list returns null. I don't know how am I supposed to access this.
I tried on Xamarin using the below method to get the list of running processes and worked as intended.
ActivityManager activityManager = mauicontext.GetSystemService(Context.ActivityService) as ActivityManager;
ActivityManager.MemoryInfo memoryInfo = new ActivityManager.MemoryInfo();
List<ActivityManager.RunningAppProcessInfo> runningAppProcesses = activityManager.RunningAppProcesses as List<ActivityManager.RunningAppProcessInfo>;
Now using Net Maui (Net.6) the same method the runningAppProcesses List is returning null.