How to set icon from image(image in gallery)
<p>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?</p>

<pre><code>result.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE,
            Intent.ShortcutIconResource.fromContext(this, R.drawable.icon));
</code></pre>

<p>Here I must use icon from resource. 
Is another way to set icon from image?</p>

<p>Maybe something it:</p>

<pre><code>int imgID = getResources().getIdentifier("/data/data/ 
com.blogspot.vsvydenko/app_thumbnails/fullBrowser.PNG", "drawable", 
getPackageName()); 
</code></pre>

<p>But I always got imgID == 0 ((</p>

<p>Thank.</p>
