Hi, guys!
In my app I want to create icon from image.
So after first run app will open gallery and user must choose an
image.
Then I will resize it and will save to app-folder.
But how to can I set this png to icon?

result.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE,
                                Intent.ShortcutIconResource.fromContext(this, 
R.drawable.icon));

Here I must use icon from resource.
Is another way to set icon from image?

Thank.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to