get FilePath from drawble folder android
<p>Hello i want to re size bitmap image... so for that i am using below code</p>

<pre><code>   BitmapFactory.Options bmOptions = new BitmapFactory.Options();
   bmOptions.inJustDecodeBounds = true;
   int photoW = bmOptions.outWidth;
   int photoH = bmOptions.outHeight;
   int scaleFactor = Math.min(photoW / 100, photoH / 100);
bmOptions.inJustDecodeBounds = false;
bmOptions.inSampleSize = scaleFactor;
bmOptions.inPurgeable = true;
Bitmap bitmap = BitmapFactory.decodeFile(path, bmOptions);
</code></pre>

<p>but my problem is that i am getting image from drawable folder like this </p>

<pre><code> Bitmap icon = BitmapFactory.decodeResource(getResources(),
                    Const.template[arg2]);
</code></pre>

<p>so  how can i convert this things into file path so i can set in the following line</p>

<pre><code>        Bitmap bitmap = BitmapFactory.decodeFile(path, bmOptions);  
</code></pre>

<p>and can get resizable image</p>
