I am trying to load the logo associated with the current activity and/or its parent application from the definition in the manifest. This technique has already worked succes
First you need to find all the applications that are installed. For this purpose us the following methods from package manager,
public abstract List getInstalledPackages (int flags)
more info here
You can also use the following method for getting info on installed packages.
public abstract List getInstalledApplications (int flags)
more info here
Now after getting the list, iterate it using the following method.
public Drawable getDrawable(String packageName,int resid,ApplicationInfo appInfo)
more info here
Each iteration will give you the respective drawable of the package queried. here res id is the id of the icon..
R.drawable.icon