Is there a way to install the application icon for Samsung devices?

I noticed that Samsung apps have a certain shape; for example, the Gallery, Camera, Phone, Messages, and Internet Applications icons below).

enter image description here

Is there a way to specify an icon only for Samsung devices? Something similar to how the new Google Pixel uses the android:roundIcon in the manifest?

I tried to find something in the Samsung Developer Documentation , but there seemed to be something missing on this topic.

Devices have a way to recognize Samsung applications, given the setting of the Icons with background [ Settings > Display > Icon backgrounds ] allows you to create a similar background for all other applications. For example, the Google Play Store icon below.

enter image description here

But I'm not sure if this is a public option.


This question would not be relevant if Samsung adopted Android Oreo's new responsive icons ; but as far as I know they haven't done it yet.

+6
source share
2 answers

You can disable TouchWiz to surround the app icon in a rounded square frame by setting

 <application> <meta-data android:name="com.samsung.android.icon_container.has_icon_container" android:value="true"/> </application> 

to your AndroidManifest.xml

+4
source

To detect if you are running on a Samsung device, it is easy:

 android.os.Build.MANUFACTURER == "samsung" 

More here

So, after you have determined that you are working on a Samsung device, you can change your application to change the application icon programmatically when working on Samsung devices. But unfortunately, android does not provide a way to do this.

There are several ways to change the application icon, here you can check, here and here

If you really need to change your icon, you can try workarouds, but if I just kept the standard with non-standard samsung icons, I would not do that;)

+2
source

Source: https://habr.com/ru/post/1015035/


All Articles