1. Are you ready for the Galaxy S20? Here is everything we know so far!

Device Admin Issue in Android 10-ResolveInfo ActivityInfo

Discussion in 'Android Development' started by Prima Management Service, Aug 23, 2020.

  1. Prima Management Service

    Thread Starter

    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);
    }
    }

    • [​IMG]
     


    #1 Prima Management Service, Aug 23, 2020
    Last edited: Aug 23, 2020
Loading...
Similar Threads - Device Admin Issue
  1. knowthatknownothing
    Replies:
    3
    Views:
    262
  2. Sowmi
    Replies:
    1
    Views:
    378
  3. App Update
    Replies:
    0
    Views:
    177
  4. joshkrupinsky
    Replies:
    6
    Views:
    461
  5. mooooon
    Replies:
    0
    Views:
    191
  6. App Update
    Replies:
    0
    Views:
    845
  7. frankienap
    Replies:
    8
    Views:
    473
  8. App Update
    Replies:
    0
    Views:
    256
  9. Samsung
    Replies:
    0
    Views:
    493
  10. App Update
    Replies:
    2
    Views:
    363

Share This Page

Loading...