Android - ResolveInfo set preferredOrder of application
<p>The preferredOrder is a property of ResolveInfo class.</p>

<p>How can I set the preferredOrder of the application, so that it can be accessed with the List of ResolveInfo collection while retrieving them from PackageManager object?
Is there any tag or attribute in manifest of application where this can be set?</p>

<pre><code>PackageManager manager = getPackageManager();
final List&lt;ResolveInfo&gt; apps = manager.queryIntentActivities(mainIntent, 0);
for (int i = 0; i &lt; apps.size(); i++) {
    ResolveInfo info = apps.get(i);
    int order = info.preferredOrder; // How to set this - Default always come zero.
}
</code></pre>

<p>Thanks</p>
