I wanted to get the list of all installed shortcuts in the homescreen launcher programmatically. I have found lots of snippets online but none of them provides the right output<
My answer may be late, but it might be useful for others.
Check my code:
if (Build.VERSION.SDK_INT <8)
{
url = "content://com.android.launcher.settings/favorites?Notify=true";
}
else
{
url = "content://com.android.launcher2.settings/favorites?Notify=true";
}
ContentResolver resolver = getContentResolver();
Cursor cursor = resolver.query (Uri.parse(url), null, null, null, null);