B4J Question ABMaterial ABMiniTemplate icon Help

walterf25

Expert
Licensed User
Longtime User
Hi everyone, this is probably a very stupid question, but how I add the icon that shows up at the top part of the browser when you open a page?
1715884275079.png


I've tried the following:
Icon:
    ABM.AddAppleTouchIcon("temp.png", "180x180")
    ABM.AddMSTileIcon("mstile-150x150.png", "144x144")
    ABM.AddFavorityIcon("favicon-32x32.png", "32x32")
    ABM.AddFavorityIcon("favicon-16x16.png", "16x16")

But it doesn't not show the icon, I've added the icon files inside the images folder, I'm assuming this is where they would go.

Does anyone know?

Thanks,
Walter
 

alwaysbusy

Expert
Licensed User
Longtime User
It appeared indeed that it did not work for the ABMMini project. I uploaded a new version to https://www.b4x.com/android/forum/t...r-absolute-beginners-update-2024-05-17.117237

NOTES:
1. There is a new version of the ABMaterial library included (5.15) with the fix
2. In an ABMMini project, you must add the icons BEFORE Initializing the server:

B4X:
...
' needs to be done BEFORE Server.Initialize!
ABM.AddFavorityIcon("favicon-32x32.png", "32x32")
ABM.AddFavorityIcon("favicon-16x16.png", "16x16")
       
Dim DonatorKey As String = ""
Server.Initialize("", DonatorKey, "template") ' Application = ' the handler that will be used in the url e.g. http://localhost:51042/template
' some parameters
Server.Port = 51042
...
 
Last edited:
Upvote 0
Top