With reference to:
Adaptive Icons
And
Erel's Add Pinned Shortcut script
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.
I assume it is something like:
Any suggestions?
Adaptive Icons
Adaptive Icons
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...
www.b4x.com
And
Erel's Add Pinned Shortcut script
Add pinned shortcut
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.
I assume it is something like:
B4X:
iconImage = LoadBitmap(...)
Any suggestions?