Solved

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

Posted on 2013-06-09
3
640 Views
Last Modified: 2013-06-11
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
Comment
Question by:Modifier1000
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 39232811
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
 
LVL 17

Accepted Solution

by:
Chris Harte earned 500 total points
ID: 39235337
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
 

Author Closing Comment

by:Modifier1000
ID: 39238363
Just what I needed.
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an explanation of a simple data model to help parse a JSON feed
This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.
This video is in connection to the article "The case of a missing mobile phone (https://www.experts-exchange.com/articles/28474/The-Case-of-a-Missing-Mobile-Phone.html)". It will help one to understand clearly the steps to track a lost android phone.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question