Robert Valentino Well-Known Member Licensed User Longtime User Jul 23, 2018 #1 In this post by Erel: https://www.b4x.com/android/forum/threads/adaptive-icons.95244/#content He explains how to setup adaptive icons. in the manifest create statement: Code: Copy CreateResource(mipmap-anydpi-v26, ic_launcher.xml, <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> <background android:drawable="@mipmap/background"/> <foreground android:drawable="@mipmap/foreground"/> </adaptive-icon> ) It initially wasn't working for me. He uses mipmap-anydpi-v26 as a directory. Now I (very bad on my part) blindly copied the code and it was not working for me because I was using SDK 27. Once I changed the statement to mipmap-anydpi-v27 everything started working. DO I need to always update my directory based on what version of the SDK I am using? OR can I use ANY directory statement in the CreateResource?
In this post by Erel: https://www.b4x.com/android/forum/threads/adaptive-icons.95244/#content He explains how to setup adaptive icons. in the manifest create statement: Code: Copy CreateResource(mipmap-anydpi-v26, ic_launcher.xml, <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> <background android:drawable="@mipmap/background"/> <foreground android:drawable="@mipmap/foreground"/> </adaptive-icon> ) It initially wasn't working for me. He uses mipmap-anydpi-v26 as a directory. Now I (very bad on my part) blindly copied the code and it was not working for me because I was using SDK 27. Once I changed the statement to mipmap-anydpi-v27 everything started working. DO I need to always update my directory based on what version of the SDK I am using? OR can I use ANY directory statement in the CreateResource?
Robert Valentino Well-Known Member Licensed User Longtime User Jul 23, 2018 #2 Forgot to say having the wrong directory cause the Green Android (I guess default Icon) Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jul 24, 2018 #3 It should always be mipmap-anydpi-v26. It doesn't matter which SDK you are using. Upvote 0
Robert Valentino Well-Known Member Licensed User Longtime User Jul 24, 2018 #4 Needed to reinstall SDK to get everything to work fine. As described in this thread: https://www.b4x.com/android/forum/threads/adaptive-icons-not-working.95280/ Upvote 0
Needed to reinstall SDK to get everything to work fine. As described in this thread: https://www.b4x.com/android/forum/threads/adaptive-icons-not-working.95280/