G GuyBooth Active Member Licensed User Longtime User Sep 22, 2018 #1 When I start a foreground service, I use the following code: Code: Copy nNotify.Initialize2(nNotify.IMPORTANCE_LOW) nNotify.Icon = "icon" nNotify.SetInfo("Movie TimeOut", "Starting", "") Service.AutomaticForegroundNotification = nNotify This is a notification that cannot be cancelled because the service is running in Foreground mode. Is it possible to change its message after the service has started? I would like to be able to change it to something like ""Now Running", for example. Is there an ID number associated with it that can be read?
When I start a foreground service, I use the following code: Code: Copy nNotify.Initialize2(nNotify.IMPORTANCE_LOW) nNotify.Icon = "icon" nNotify.SetInfo("Movie TimeOut", "Starting", "") Service.AutomaticForegroundNotification = nNotify This is a notification that cannot be cancelled because the service is running in Foreground mode. Is it possible to change its message after the service has started? I would like to be able to change it to something like ""Now Running", for example. Is there an ID number associated with it that can be read?
Erel B4X founder Staff member Licensed User Longtime User Sep 23, 2018 #2 The automatic notification id is: 51042 You can create a new notification and show it. Upvote 0
G GuyBooth Active Member Licensed User Longtime User Sep 23, 2018 #3 Works as desired. Is that number easily found? (wondering what I will do if they change it in Android in the future....) Upvote 0
Works as desired. Is that number easily found? (wondering what I will do if they change it in Android in the future....)
DonManfred Expert Licensed User Longtime User Sep 23, 2018 #4 GuyBooth said: Is that number easily found? Click to expand... I guess it is part of a b4a Library and Anywheresoftware did set the value to 51042 Upvote 0
GuyBooth said: Is that number easily found? Click to expand... I guess it is part of a b4a Library and Anywheresoftware did set the value to 51042