Android Question Legacy Icon with Adaptive Icons

Robert Valentino

Well-Known Member
Licensed User
Longtime User
Changed my code to use Adaptive Icons and SDK 27
B4X:
uses-sdk android:minSdkVersion="5" android:targetSdkVersion="27"

Looks great on my device using Android 8 but on an old device using Android 4.4.2 and API 19
Icon looks squished.

How do I get my default (legacy) icon to display on older devices?

Is there anyway I can check the Android version / API and do a
B4X:
SetApplicationAttribute(android:icon, "@drawable/icon")
 

anOparator

Active Member
Licensed User
Longtime User
Search for 'Adaptive Icons', it's a tutorial.
 
Upvote 0

Robert Valentino

Well-Known Member
Licensed User
Longtime User
I did and have Adaptive Icons working fine for my Android 8.0 device

But on an OLDER device (in my case Samsung Galaxy Tab2 SM-T210R Android 4.4.2 and API 19) the icon is 1/2 the size of all the other icons on the screen.
 
Upvote 0
Top