Below is My code to create a shortcut to a selected application. I have really no problem and the application work quite well.
The problem is that I am able to create a
Finally found a solution; I was stupid to use Intent.EXTRA_SHORTCUT_ICON_RESOURCE:
Here is the correct code:
Drawable iconDrawable = (....); BitmapDrawable bd = (BitmapDrawable) iconDrawable; intent.putExtra(Intent.EXTRA_SHORTCUT_ICON, bd.getBitmap());