Updated instructions are available here: https://www.b4x.com/android/forum/threads/adaptive-icons-simple-instructions-and-tips.123843/ Starting from Android 8 apps should include an adaptive icon. Without it the icon will appear as a small icon inside the larger template: (B4A designer still...
This code shows a dialog that lets the user add a shortcut on the home screen. You can modify the intent and add extra keys and values which can later be used by your app. Activity_Resume will be called when the shortcut is clicked. You can get the intent with Activity.GetStartingIntent...
www.b4x.com
The Add Pinned Shortcut Script requires an Icon image as BitMap.
If you are using Adaptive Icons how do you access the correct icon image.
As per I understand, the adaptive icon is for display on home screen of phone. The apps icon can be different from it, but must be consistent in all places like desktop, web, phone etc.
Check other apps in your phone, they follow this rule.
As per I understand, the adaptive icon is for display on home screen of phone. The apps icon can be different from it, but must be consistent in all places like desktop, web, phone etc.
Check other apps in your phone, they follow this rule.
It looks like there is a way to do this, but it is quite involved. Essentially you have to convert a drawable to a bitmap. I therefore decided to keep it simple. I used the largest image generated by Android Studio and it added it to my home screen.