Solved

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

Posted on 2013-06-09
3
608 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
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 16

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
You should read OS supplied guidelines before developing. I can't stress that enough. The guidelines will help you understand the reasons mobile app developers do what they do.  Apple is very particular when they review appstore submissions.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

862 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now