Solved

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

Posted on 2013-06-09
3
597 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
Comment Utility
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
Comment Utility
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
Comment Utility
Just what I needed.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
A short article about problems I had with the new location API and permissions in Marshmallow
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

762 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

6 Experts available now in Live!

Get 1:1 Help Now