Yes I got the solution. Please go through this link : http://steven.bitsetters.com/2007/11/27/accessing-android-resources-by-name-at-runtime/ Here after getting id, we can use anywhere.
Thanks, Sripati On Thu, Nov 11, 2010 at 3:41 PM, Kumar Bibek <[email protected]> wrote: > You cannot do that way. > > On Thu, Nov 11, 2010 at 3:36 PM, Sripati Misra <[email protected]>wrote: > >> Hi, >> >> I want to show image from drawable folder using path >> (res/drawable/icon.png). I do not want to use R.drawable.icon. >> Please anybody know how to view the image using res/drawable/icon.png. >> >> Thanks, >> Sripati >> >> -- >> 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]<android-developers%[email protected]> >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en > > > > > -- > Kumar Bibek > http://techdroid.kbeanie.com > http://www.kbeanie.com > > -- > 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]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- 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

