sugar: Why does SugarORM contain the default ic_launcher.png icons? They are merged with my own ic_launcher.png and I don't want that

Some background:

Using SugarORM in my app and currently I have designed a single app launcher icon that I have named “ic_launcher.png” and put in my app’s /drawable folder. I’d like to use that icon globally throughout my app for all device resolutions so I removed ic_launcher.png from the other drawable folders.

However, SugarORM also includes the default ic_launcher.png in all of it’s drawable folders and since I am using SugarORM in the <application> tag, those are merged with my designed icon and device resolutions for which I have not provided ic_launcher use the one coming from the SugarORM folder.

One way to overcome this is to rename my custom designed icon something different than ic_launcher and put the new name in android:icon but I think most people that use SugarORM will just go for the default configuration and not even notice the merged ic_launcher drawable.

I think that in the future we should either remove this launcher icon from the SugarORM library or rename or just leave it in the default /drawable folder (no drawable-hdpi, etc).

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 28

Most upvoted comments

Just use tools:replace=“android:icon” in manifest.xml

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="............">

    <application
        tools:replace="android:icon" 

Its works for me, no need to move ic_launcher.

thanks @masoomyf work for me.

Yes, it’s fixed in 1.3.1.

confirm as fixed using 1.3.1