android - How to get Resource name? -


how image name , display in textbox? used arraylist generates random images.

string imagename = getresources().getresourcename((integer)list.get(position)); 

the output code r.drawable.image1. how image name image1?

try this,

string name = getresources().getresourceentryname(image[position]); 

Comments

Popular posts from this blog

Prolog - Listing -

orchardcms - change base url in local copy in Orchard CMS -

linear regression - Trying to get confidence/prediction intervals with `predict.lm` in R, but I keep getting an error regarding my dichotomous variable -