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
Post a Comment