I believe that the code you're looking for should be contained in this article.
If you dynamically allocate the name of the icon resource and then call the resource as the icon, it should work. I'm a bit of a n00b and haven't tested this though... http://coderzheaven.com/2011/02/dynamically-load-images-in-android-or-load-image-in-android-using-a-string-path/ Selincopf On Jul 26, 10:04 am, vovs <[email protected]> wrote: > 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

