Osama Ahmad
Lurker
hi
i want to make an application that contains a list of installed application and onClick in any application return application permission.
this code to get the application name and it's icon and i want return the permissions
help me pls
This is home work
i want to make an application that contains a list of installed application and onClick in any application return application permission.
Code:
String appName;
List<PackageInfo> packs = getPackageManager().getInstalledPackages(0);
for(int i=0;i<packs.size();i++) {
PackageInfo p = packs.get(i);
if ((p.versionName == null))
{
continue ;
}
appName = p.applicationInfo.loadLabel(getPackageManager()).toString();
Drawable icon = p.applicationInfo.loadIcon(getPackageManager());
Log.d("aaaaaa", "Installed package :" + appName + "" );
Log.d("dddddd", "Launch Program Icon :"+ icon + "");
this code to get the application name and it's icon and i want return the permissions
help me pls

This is home work

