Android Question Adaptive Icons - not working...

derez

Expert
Licensed User
Longtime User
The attached example is defined for adaptive icon like the tutorial - as much as I can think of:
The manifest is for 26 only, the changes done like in the tutorial.
Version of android is 27.
Files in the mipmap directory are read-only.
No icon is set in "project - choose icon".
B4a version - 7.30

The app is failing while looking for the icon's drawable.
Please check what I'm doing wrong...
Thanks.
 

Attachments

  • icons_test.zip
    15.7 KB · Views: 380
Last edited:

monic

Active Member
Licensed User
Longtime User
Simple mistake should rename forground.png to foreground.png in objects/res/mipmap/

Future point you should of posted the error message otherwise it takes longer to download, compile and spot the error.
 
Upvote 0

derez

Expert
Licensed User
Longtime User
Simple mistake should rename forground.png to foreground.png in objects/res/mipmap/

Future point you should of posted the error message otherwise it takes longer to download, compile and spot the error.
Thank you, I corrected the spelling but the problem is still there, like I wrote above - it looks for the ic_launcher:
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Uploaded to the first post.
It does work for me without problem.

Based on the info you posted in the other thread (you are using Android.jar from api 26) i fear that you are using an OLD SDK Installation.

I want suggest to install a new SDK in a blank folder. And try it again with the newly installed SDK (dont forget to adapt the path to the android.jar from the new installation.

You can find the Setup-Instructions here. https://www.b4x.com/b4a.html
You also can watch this Video as it describes it clearly.

Start with a new Blank folder like you see in the Video.
 
Upvote 0

derez

Expert
Licensed User
Longtime User
Thank you DonManfred, you were right - I installed the sdk using the b4a sdk manager to a new directory, now it works !
Now I can play with icons and try to overcome Google's annoying design.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…