Robert Valentino Well-Known Member Licensed User Longtime User Jul 23, 2018 #1 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")
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 Jul 23, 2018 #2 Search for 'Adaptive Icons', it's a tutorial. Upvote 0
Robert Valentino Well-Known Member Licensed User Longtime User Jul 23, 2018 #3 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
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.
Robert Valentino Well-Known Member Licensed User Longtime User Jul 23, 2018 #4 Figured it out. Had SetApplicationAttribute point to wrong file Upvote 0
anOparator Active Member Licensed User Longtime User Jul 24, 2018 #5 Also https://www.b4x.com/android/forum/threads/appcompat-toolbar-icon.80797/ Upvote 0