title: How to get the list of installed Browser Apps in an Android 7.0 running devices programmatically?
body: <p>Before Android 7.0 I was able to retrieve the list of installed browser type applications and it's package name. Then, I upgrade to Android 7.0 and I am only able to retrieve Samsung's Internet browser, but not the other browser type applications such as Chrome .</p>
  
  <p>Device <strong>Samsung Tab A</strong> </p>
  
  <p>This is the code :</p>
  
  <pre><code>public static List&lt;String&gt; getListOfBrowser(Context context) {
      List&lt;String&gt; browserPackageName = new ArrayList&lt;String&gt;();
      try {
          Intent intent = new Intent(Intent.ACTION_VIEW);
          intent.setData(Uri.parse("http://www.google.com"));
          PackageManager pm = context.getPackageManager();
          List&lt;ResolveInfo&gt; browserList = pm.queryIntentActivities(intent, 0);
          for (ResolveInfo info : browserList) {
              browserPackageName.add(info.activityInfo.packageName);
              Log.e("BrowserList Info ",info.activityInfo.packageName+" total browser"+browserList.size());
          }
      } catch (Exception e) {
          e.printStackTrace();
          Log.e("BrowserList Info ",e.getMessage());
      }
      return browserPackageName;
  }
  </code></pre>