Thursday, September 19, 2013

How to get asset images id in android

How to get asset images id in android

I need to set a list of images in ViewPager. I have a list of images in my
asset folder. I grouped the images in seperate folders inside asset like
assets/images; assets/images1,...... Now I need to get the id of the
images (say images1 alone) in int[] array. I got the name of the
images(images1) in String[] array. How to get the id of the images in
string[] using their names.

No comments:

Post a Comment