O Olli73 Member Licensed User Longtime User Apr 5, 2018 #1 I want to change the background color of the smallicon in a notification. I use the notification builder. My aim is, to get different colors for the smallicon in the notification and in the status bar. Equal to https://stackoverflow.com/questions/27343202/changing-notification-icon-background-on-lollipop it must be possible by "setColor". How can I do this?
I want to change the background color of the smallicon in a notification. I use the notification builder. My aim is, to get different colors for the smallicon in the notification and in the status bar. Equal to https://stackoverflow.com/questions/27343202/changing-notification-icon-background-on-lollipop it must be possible by "setColor". How can I do this?
Semen Matusovskiy Well-Known Member Licensed User Apr 5, 2018 #2 For example B4X: Dim javaobjectInstance As JavaObject Dim notificationbuilderInstance As NotificationBuilder .... javaobjectInstance = notificationbuilderInstance javaobjectInstance.RunMethod ("setColor", Array As Object (Colors.Red)) Upvote 0
For example B4X: Dim javaobjectInstance As JavaObject Dim notificationbuilderInstance As NotificationBuilder .... javaobjectInstance = notificationbuilderInstance javaobjectInstance.RunMethod ("setColor", Array As Object (Colors.Red))