Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 649
  • Last Modified:

Which folder to place images and XML files for Android development using Eclipse?

Hello Android Experts,

I want to bring in an image (.png) file into Android that I created using Photoshop, which Drawable folder do I place the image in using Eclipse?

Also, I have an external XML file I need to import for parsing to display the data using a Listview, where do I place that file?

Thank you!
0
Modifier1000
Asked:
Modifier1000
1 Solution
 
CEHJCommented:
Make a resources folder at the root of the package tree and put them in there
http://technojeeves.com/joomla/index.php/free/120-loading-files-as-resources-in-java-with-eclipse
0
 
Chris HarteThaumaturgeCommented:
Starting at the root directory of your project, the xml goes in the directory
/res/xml

and your images go in
/res/drawable-hdpi.

If you are using them as raw data, put them in
/res/raw.
0
 
Modifier1000Author Commented:
Just what I needed.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now