Solved

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

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
drive pdf viewer 3 51
how to root nextbook 10 running marshmallow 1 42
texting service for android tablet 3 38
go google android phone 5 48
Often, people trade privacy and security for convenience. However in today's concrete jungle, this is an extremely foolish decision considering the vast amount of technologies being used against consumer interest. First off, I won't waste any time e…
In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
This video teaches viewers about errors in exception handling.
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

730 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