barx Well-Known Member Licensed User Longtime User Mar 18, 2012 #1 Is it possible to have multiple notifications but only one icon in the status bar with the number of notifications shown with Code: n.number
Is it possible to have multiple notifications but only one icon in the status bar with the number of notifications shown with Code: n.number
W wl Well-Known Member Licensed User Longtime User Mar 18, 2012 #2 Probably I missed your point, but as found on: Notification - Basic4android Wiki you can set the Number property to display a number in the notification icon, as in following example: Dim n As Notification n.Initialize n.Icon = "icon" n.SetInfo ("This is the title", "and this is the body", "") n.Number = 9 n.Notify(1) Upvote 0
Probably I missed your point, but as found on: Notification - Basic4android Wiki you can set the Number property to display a number in the notification icon, as in following example: Dim n As Notification n.Initialize n.Icon = "icon" n.SetInfo ("This is the title", "and this is the body", "") n.Number = 9 n.Notify(1)
barx Well-Known Member Licensed User Longtime User Mar 18, 2012 #3 Yeah I saw that and can make an icon show the number as required. Its the other notifications after that. Basically I want to be able to show multiple notifications on the notification list all from the same service but only show 1 icon on the status bar with number of how many there are in list. I would add the icon with number along with the first notification added but any notification shown after this would also show icon. This is what I'm trying to avoid. I guess the question should be. Can you add a notification to the list without showing an icon on the status bar. Cheers. Sent from my HTC Vision using Tapatalk Upvote 0
Yeah I saw that and can make an icon show the number as required. Its the other notifications after that. Basically I want to be able to show multiple notifications on the notification list all from the same service but only show 1 icon on the status bar with number of how many there are in list. I would add the icon with number along with the first notification added but any notification shown after this would also show icon. This is what I'm trying to avoid. I guess the question should be. Can you add a notification to the list without showing an icon on the status bar. Cheers. Sent from my HTC Vision using Tapatalk
barx Well-Known Member Licensed User Longtime User Mar 18, 2012 #4 Tried this... Code: If ShowIcon = True Then Note.Icon = Notes(5) Note.Number = NoteCount ShowIcon = False Else Note.Icon = "" End If but only first notification is shown with the right number. So this concludes that using .icon = "" doesn't work. Any other ideas? Upvote 0
Tried this... Code: If ShowIcon = True Then Note.Icon = Notes(5) Note.Number = NoteCount ShowIcon = False Else Note.Icon = "" End If but only first notification is shown with the right number. So this concludes that using .icon = "" doesn't work. Any other ideas?
barx Well-Known Member Licensed User Longtime User Mar 19, 2012 #5 After looking round t'internet for a while, it appears that Android doesn't allow this :sign0148: Other apps that give the impression of no icon seem to use a transparent icon. This is all well and good but I'm not 100% convinced with this. What happens when you have 3 transparent icons up there then you get a text msg or something? then the status icon for the text app will be show half way across the bar with blank space in between. Wonder if there is a way to force the transparent items to the far right so this effect is eliminated. Going to keep reading and tinkering and will come back to report should I found anything out. Ta. Upvote 0
After looking round t'internet for a while, it appears that Android doesn't allow this :sign0148: Other apps that give the impression of no icon seem to use a transparent icon. This is all well and good but I'm not 100% convinced with this. What happens when you have 3 transparent icons up there then you get a text msg or something? then the status icon for the text app will be show half way across the bar with blank space in between. Wonder if there is a way to force the transparent items to the far right so this effect is eliminated. Going to keep reading and tinkering and will come back to report should I found anything out. Ta.