title: android - how to filter out system apps from listview of applications
body: <p>i was using a snippet of android code to learn how to launch apps and make a launcher but i cant figure out how to filter out the apps like faceunlock and facebok for htc sense and apps like that </p>
  
  <pre><code>public static List&lt;ApplicationInfo&gt; getInstalledApplication(Context context) {
      PackageManager packageManager = context.getPackageManager();
      Intent main = new Intent(Intent.ACTION_MAIN, null);
      main.addCategory(Intent.CATEGORY_LAUNCHER);
      List&lt;ApplicationInfo&gt; apps = packageManager.getInstalledApplications(0);
      Collections.sort(apps, new ApplicationInfo.DisplayNameComparator(packageManager));
      return apps;
  }
  </code></pre>
  
  <p>I know im probably something simple wrong but i just cant seem to find it please help and explain the answer so i can learn from it :p ill post more code if needed</p>