This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Android and the fly likes Iterating through images in Resource Folder Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Iterating through images in Resource Folder" Watch "Iterating through images in Resource Folder" New topic
Author

Iterating through images in Resource Folder

Robert Darling
Ranch Hand

Joined: Jun 21, 2008
Posts: 100

Hi,

I want to iterate through images in my res folder. How can i do this, and then dynamically add them to a scrollview/tableview? Is it possible.

Kind Regards.
Monu Tripathi
Rancher

Joined: Oct 12, 2008
Posts: 1369
    
    1

You can maintain an array of Resource IDs and then use them your code. Similar technique has been used in this tutorial.


[List of FAQs] | [Android FAQ] | [Samuh Varta]
 
jQuery in Action, 2nd edition
 
subject: Iterating through images in Resource Folder
 
Similar Threads
Images in downloaded files
Dispaly all images of folder
jsp include problem
Please help about picture path.
Display All images from a folder on a html/jsp page