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 with Java Improving Our Code Adding an App Icon

Round Icon persists.

Is this process good for Canary 5? For me,round icon persists, even after deleting the folder and updating the Manifest.

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="ogunfemi.folaranmi.funfacts">

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"

    android:supportsRtl="true"
    android:theme="@style/AppTheme">

    <activity android:name=".FunFactsActivity">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>

</manifest>

2 Answers

I've noticed that there are two additional XML files, probably because my compile SDK is API 26 (Android 8.0 Oreo). My target min version is API 17. If you delete them you'll be able to see the smiling face icon, albeit rounded.

  • delete ic_launcher_round.xml
  • delete ic_launcher.xml

Re-run the project and enjoy the smiling face icon!

I had actually deleted those files already.

I have been able to see the round icon throughout. It was mentioned in the tutorial that we should try to make the icon square which is the issue that I am having. It looks like I am using the same SDK as well.

This worked for me, thanks!

This worked for me. Thank You!

Worked for me also