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

    1. Download the Forums for Android™ app!


      Download

       
Loading...
Similar Threads - Device Admin Issue
  1. App Update
    Replies:
    0
    Views:
    226
  2. Magixsword
    Replies:
    0
    Views:
    184
  3. App Update
    Replies:
    0
    Views:
    209
  4. louis2008
    Replies:
    15
    Views:
    491
  5. Inzera
    Replies:
    1
    Views:
    267
  6. Maxsim Petrosyan
    Replies:
    1
    Views:
    354
  7. BrianRM
    Replies:
    1
    Views:
    368
  8. Myisjeff
    Replies:
    6
    Views:
    717
  9. louis2008
    Replies:
    11
    Views:
    479
  10. jraju
    Replies:
    4
    Views:
    872

Share This Page

Loading...