question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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).

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:28

github_iconTop GitHub Comments

3reactions
masoomyfcommented, Jan 15, 2018

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.

1reaction
limbertxcommented, Jan 28, 2018

thanks @masoomyf work for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

icons - Rebuild or regenerate 'ic_launcher.png' from images in ...
My question is: So, if one already has an existing project created, is there someplace to tell the Studio to re-generate 4 NEW...
Read more >
App Not Using Launcher Icons - Microsoft Q&A
I am working on creating the launcher icons for my app, but it doesn't seem to be using them. I have edited the...
Read more >
How to create Adaptive Launcher Icons using Image Asset ...
Access 7000+ courses for 60 days FREE: https://pluralsight.pxf.io/c/1291657/424552/7490 Learn what are Launcher icons, how to create them ...
Read more >
Elements of Android Room, FINAL Version - CommonsWare
The default name of the SQLite table is the same as the entity class name, but tableName allows you to override that and...
Read more >
Viewing online file analysis results for 'hvpp.apk'
Not all malicious and suspicious indicators are displayed. Get your own cloud service or the full version to view all details. Suspicious Indicators...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found