( sorry if my english is not so good, i am a belgian user)
I am currently developing an app that allow the user to choose a custom icon. ( i create a Home shortcut to my app with a ressource that user can select).
All is working fine with :
- Code: Select all
i.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE,Intent.ShortcutIconResource.fromContext(getBaseContext(), myIcon)); // mycon is for example R.drawable.icon
But now I would like to allow the user to put his own icon for example in /SDCARD/myappname/icon.png.
As i cannot give an ID to a png on the SDCARD, i really don't know how to do that....
Have you any idea?
Thank a lot.