dibesw Active Member Licensed User Longtime User Feb 16, 2025 #1 This is my NB6 notification. B4X: Copy Dim n As NB6 Dim smiley As Bitmap smiley = LoadBitmapResize(File.DirAssets, "temporary-tooth.png", 24dip, 24dip, False) n.Initialize("default", Application.LabelName, "LOW").SmallIcon(smiley) temporary-tooth.png it is different from the icon app and is present in the files tab. I have also copied the icon in drawable dir (reading only) but the notification icon that I can see is always app icon. In my opinion the File.DirAssets path is not good but I can't understand how to get to the drawable folder. Last edited: Feb 17, 2025
This is my NB6 notification. B4X: Copy Dim n As NB6 Dim smiley As Bitmap smiley = LoadBitmapResize(File.DirAssets, "temporary-tooth.png", 24dip, 24dip, False) n.Initialize("default", Application.LabelName, "LOW").SmallIcon(smiley) temporary-tooth.png it is different from the icon app and is present in the files tab. I have also copied the icon in drawable dir (reading only) but the notification icon that I can see is always app icon. In my opinion the File.DirAssets path is not good but I can't understand how to get to the drawable folder.
Erel B4X founder Staff member Licensed User Longtime User Feb 17, 2025 #2 The image doesn't need to be copied and the folder is not important. Tip: use XUI.LoadBitmapResize. Behaves the same but is cross platform. SmallIcon is the icon that appears in the top status bar. Maybe you are looking for LargeIcon. Upvote 0
The image doesn't need to be copied and the folder is not important. Tip: use XUI.LoadBitmapResize. Behaves the same but is cross platform. SmallIcon is the icon that appears in the top status bar. Maybe you are looking for LargeIcon.