How to get the installed application list that uses gps in android?
<p>I have this code which returns a list of all installed application of a device:</p>

<pre><code>PackageManager pm = this.getPackageManager();

Intent intent = new Intent(Intent.ACTION_MAIN, null);
intent.addCategory(Intent.CATEGORY_LAUNCHER);

List&lt;ResolveInfo&gt; list =pm.queryIntentActivities(intent,PackageManager.PERMISSION_GRANTED);
        for (ResolveInfo rInfo : list) {
            results.add(rInfo.activityInfo.applicationInfo.loadLabel(pm)
                    .toString());
            Log.w("Installed Applications", rInfo.activityInfo.applicationInfo
                    .loadLabel(pm).toString());
        }
</code></pre>

<p>But now I want to get only those application in my list which uses gps service, as far as i learned that if I can filter the permission being taken in those apps then I can solve it, but dont know how to do this.</p>
