Prima Management Service
Lurker
We are currently using Device Admin application in Android 9 OS devices successfully and it is redirect to a Object reference error related to "ResolveInfo ActivityInfo" when we restart the Android 10 devices.Is there any way to solve this issue?
We are using below in Device Admin app main activity
foreach (var appResolve in ObtainListOfApplicationIntalled(this))
//foreach (ResolveInfo appResolve in ObtainListOfApplicationIntalled(this))
{
packagename = appResolve.ActivityInfo.PackageName;
//disable all
if (whitelisted.Contains(packagename) == false)
{
devicePolicyManager.SetApplicationHidden(demoDeviceAdmin, packagename, true);
}
}
We are using below in Device Admin app main activity
foreach (var appResolve in ObtainListOfApplicationIntalled(this))
//foreach (ResolveInfo appResolve in ObtainListOfApplicationIntalled(this))
{
packagename = appResolve.ActivityInfo.PackageName;
//disable all
if (whitelisted.Contains(packagename) == false)
{
devicePolicyManager.SetApplicationHidden(demoDeviceAdmin, packagename, true);
}
}
Last edited: