I have an app that allows you to create \"shortcuts\" in Home Screen. But can i detect if the \"shortcuts\" already exist, i didn\'t have to create it again. Thanks.
I was having the same issue. I don't think its possible for you to tell if it's there, but I think what I used will work for you as well.
Simply uninstall the shortcut before you add it!
intent.setAction("com.android.launcher.action.UNINSTALL_SHORTCUT");
getApplicationContext().sendBroadcast(intent);
intent.setAction("com.android.launcher.action.INSTALL_SHORTCUT");
getApplicationContext().sendBroadcast(intent);
Just make sure you add the following to your manifest file.