Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to get the list of installed application from google play store in android?
    primarykey
    data
    text
    <p>i want the application list that is installed from google play or from any external storage, but not the pre installed system application.</p> <p>i just use below code.....</p> <pre><code> class PInfo { private String appname = ""; private String pname = ""; private String versionName = ""; private int versionCode = 0; private Drawable icon; private void prettyPrint() { Log.v("", "*** appname = " + appname + " *** \n" + " packagename = " + pname + "\n" + " version name = " + versionName + "\n" + " version code = " + versionCode + " \n\n\n\n"); } } private ArrayList&lt;PInfo&gt; getPackages() { ArrayList&lt;PInfo&gt; apps = getInstalledApps(true); /* false = no system packages */ final int max = apps.size(); int i = 0; for (i=0; i&lt;max; i++) { apps.get(i).prettyPrint(); } Log.v(TAG, "Total APPs = "+i); return apps; } private ArrayList&lt;PInfo&gt; getInstalledApps(boolean getSysPackages) { ArrayList&lt;PInfo&gt; res = new ArrayList&lt;PInfo&gt;(); List&lt;PackageInfo&gt; packs = getPackageManager().getInstalledPackages(PackageManager.GET_META_DATA); for(int i=0;i&lt;packs.size();i++) { PackageInfo p = packs.get(i); if ((!getSysPackages) &amp;&amp; (p.versionName == null)) { continue ; } PInfo newInfo = new PInfo(); newInfo.appname = p.applicationInfo.loadLabel(getPackageManager()).toString(); newInfo.pname = p.packageName; newInfo.versionName = p.versionName; newInfo.versionCode = p.versionCode; newInfo.icon = p.applicationInfo.loadIcon(getPackageManager()); res.add(newInfo); } return res; } </code></pre> <p>but this code gives me information of system application also.....</p> <p>can anybody know how to get only installed application except the installed system application ?</p> <p>thanks....</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload