B4J Question [ABMaterial] favicon.ico - where to place ?

peacemaker

Expert
Licensed User
Longtime User
HI, All

srvr.StaticFilesFolder is not used in ABM.
Where to place favicon.ico for web-site ?
 

alwaysbusy

Expert
Licensed User
Longtime User
Files folder
This is for BANano, not for ABM apps.

srvr.StaticFilesFolder is not used in ABM.
It CAN be used, however I strongly advice not to use it as it takes quite some tuning to do so. We always just leave it to the default www folder. https://www.b4x.com/android/forum/t...or-configurable-app-and-content-folders.71018

The favicons have to placed in the www/" + ABMShared.AppName + "/images/ folder, e.g. www/Work2020/images

A typical config in our apps is something like this:
B4X:
    ABM.AddAppleTouchIcon("apple-touch-icon-180x180.png", "180x180")
    ABM.AddMSTileIcon("mstile-150x150.png", "144x144")
    ABM.AddFavorityIcon("favicon-32x32.png", "32x32")
    ABM.AddFavorityIcon("favicon-16x16.png", "16x16")
    ABM.AddFavorityIcon("favicon-96x96.png", "96x96")
    ABM.AddFavorityIcon("favicon-128x128.png", "128x128")
    ABM.AddFavorityIcon("favicon-194x194.png", "194x194")
   
    ABM.AppVersion = DateTime.now
    ABM.MaskIcon = "safari-pinned-tab.svg"
    ABM.MaskIconColor = ABM.COLOR_AMBER
    ABM.MaskIconColorIntensity = ABM.INTENSITY_DARKEN3
    ABM.MSTileColor = ABM.COLOR_AMBER
    ABM.MSTileColorIntensity = ABM.INTENSITY_DARKEN3
    ABM.AndroidChromeThemeColor = ABM.COLOR_AMBER
    ABM.AndroidChromeThemeColorIntensity = ABM.INTENSITY_DARKEN3
    ABM.Manifest = "site.webmanifest"
   
    ABMShared.AppName = "Work2020"
    ABM.ThresholdPxConsiderdSmall = 600
    ABM.ThresholdPxConsiderdMedium = 1024
    ABM.ThresholdPxConsiderdLarge = 1400
    ABM.SetFontSizePercentages(80,85,90,100)

Alwaysbusy
 
Upvote 0
Top