Skip to content Skip to sidebar Skip to footer

How To Get The List Of All Installed Shortcuts Found In The Homescreen Launcher In Android

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 for

Solution 1:

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"; 
} 

ContentResolverresolver= getContentResolver(); 
Cursorcursor= resolver.query (Uri.parse(url), null, null, null, null);

Post a Comment for "How To Get The List Of All Installed Shortcuts Found In The Homescreen Launcher In Android"