Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Build an Interactive Story App (Retired) User Input Introducing ImageViews

Ritu Kashyap
Ritu Kashyap
972 Points

Not "drawable" but there's this "mipmap" folder.

What's the difference?

2 Answers

Sean Wilson
Sean Wilson
3,791 Points

Android Studio has changed a lot since this tutorial was made. As Ozhan correctly pointed out, you should take the icon images out of the drawable folders, and place them in the respective mipmap folders, replacing the default icons in the process. If you're replacing them in Android Studio, then when you copy an image across to the mipmap folder, you will be asked which of the mipmap folders you'd like it to go in, as Android Studio has visually condensed all the mipmap locations (mipmap-hdpi, mipmap-mdpi, etc.) into one mipmap folder for easy of use.

What you should do with the rest of the images in the drawable folders is: 1) Open the res folder in finder/explorer 2) Delete the drawable folder 3) In its place, paste in all of the drawable folders from the download (drawable-hdpi, drawable-mdpi, etc.)

Now, when you go into Android Studio, you'll still see just the drawable directory, but as with the mipmap folders, this is Android Studio condensing them down visually. Now when you load the app on different size devices, the correct size image will be loaded.

Reed Lawrence
Reed Lawrence
3,211 Points

I would love for this to be included/explained in the teachers notes! This helped.

The mipmap folder is meant to be where you put your launcher icon and the drawable folder is for everything else. You don't strictly have to use it that way if you don't want to.