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 a Simple Android App Improving Our Code Adding an App Icon

Derek Derek
Derek Derek
8,744 Points

App icon

I've overridden all hdpi images, and they were successfully undated, but the app icon was not changed to the smiley face but remained as the default android icon. Any help please?

Gavin Ralston
Gavin Ralston
28,770 Points

Could you post a screenshot of the expanded res directory in your IDE and a shot of your folder structure on your file system?

Also a copy of your AndroidManifest.xml file here would be useful.

3 Answers

My app icon in the emulator was not updating. I cleaned the project i.e. Build>Clean Project and then rebuilt it and restarted the emulator. It then worked for me.

Justin Roberts
Justin Roberts
14,583 Points

I was having the same problem, I updated all of the images but the icon in the emulator was still showing the default one. I uninstalled and reinstalled the application and that fixed it.

Gavin Ralston
Gavin Ralston
28,770 Points

Be sure to check in the AndroidManifest.xml file that the application tag has the following attribute updated:

<application android:icon="@drawable/smiley_face_icon_or_whatever" android:label="@string/app_name" >

...replacing smiley_face_icon_or_whatever with the actual file name. :)