android - className and packageName of apps in emulator -


i trying classname , packagename of apps in emulator.iam not getting output .please let me know right way.

list<applicationinfo>applicationinfos=getpackagemanager().getinstalledapplications(0);    for(applicationinfo applicationinfo:applicationinfos) {                         string cn=applicationinfo.classname==null?"not able class name":applicationinfo.classname;                        string pk=applicationinfo.packagename==null?"not able package name":applicationinfo.classname;                         log.e("tag", " " + cn+"---"+pk);                     } 

  list<applicationinfo> applicationinfos=getpackagemanager().getinstalledapplications(0);      for(applicationinfo applicationinfo:applicationinfos) {         string cn=applicationinfo.classname;         string pk=applicationinfo.packagename;         log.i("tag", " " + cn+"---"+pk);     } 

Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -