This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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


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]
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Iterating through images in Resource Folder
 
It's not a secret anymore!