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

Here is the mipmap version of the copy/paste for those who want to save at least 15 seconds

if (mIcon.equals("clear-day")) { iconId = R.mipmap.clear_day; } else if (mIcon.equals("clear-night")) { iconId = R.mipmap.clear_night; } else if (mIcon.equals("rain")) { iconId = R.mipmap.rain; } else if (mIcon.equals("snow")) { iconId = R.mipmap.snow; } else if (mIcon.equals("sleet")) { iconId = R.mipmap.sleet; } else if (mIcon.equals("wind")) { iconId = R.mipmap.wind; } else if (mIcon.equals("fog")) { iconId = R.mipmap.fog; } else if (mIcon.equals("cloudy")) { iconId = R.mipmap.cloudy; } else if (mIcon.equals("partly-cloudy-day")) { iconId = R.mipmap.partly_cloudy; } else if (mIcon.equals("partly-cloudy-night")) { iconId = R.mipmap.cloudy_night; }

Actually, you want to put those "icons" in the drawables folder still. The mipmaps folder is more for out of app icons like the launcher icon, and notification icon, while things drawn to the screen inside the app are still drawables.

Thanks James Simshaw! That clears things up for me :)