Hi,
I've written a little app which runs as a service and puts a notification on the status bar: this shows up perfectly well when the status bar is "dark" (my normal situation).
However, if another app (eg. Facebook) changes the status bar to "light" then although all the other icons change to dark images, mine stays as a light image (white on white) and largely disappears.
My icon is a "white on transparent" image saved as a (read-only) ".ico" file in \objects\res\drawables.
Images show the icon on dark and light backgrounds.
Thank you for helping.
I've written a little app which runs as a service and puts a notification on the status bar: this shows up perfectly well when the status bar is "dark" (my normal situation).
However, if another app (eg. Facebook) changes the status bar to "light" then although all the other icons change to dark images, mine stays as a light image (white on white) and largely disappears.
My icon is a "white on transparent" image saved as a (read-only) ".ico" file in \objects\res\drawables.
This code creates the notification:
Sub Service_Start (StartingIntent As Intent)
mVol=pl.GetVolume(pl.VOLUME_MUSIC)
Starter.Stray.Initialize2(Starter.Stray.IMPORTANCE_LOW)
Starter.Stray.Icon="iconsmall"
Starter.Stray.Light=False
Starter.Stray.Sound=False
Starter.Stray.SetInfo("PL's Vocalise Running","Click here to terminate.",Main)
Service.StartForeground(1,Starter.Stray)
Images show the icon on dark and light backgrounds.
Thank you for helping.