B bairdy New Member Licensed User Longtime User Nov 10, 2011 #1 Android notifications can show a 'ticker' message that scrolls through the status bar when a notification is received. It would be great if B4A could implement this.
Android notifications can show a 'ticker' message that scrolls through the status bar when a notification is received. It would be great if B4A could implement this.
Erel B4X founder Staff member Licensed User Longtime User Nov 10, 2011 #2 I believe that it is already supported. When the Notification body text is long enough Android scrolls it automatically.
I believe that it is already supported. When the Notification body text is long enough Android scrolls it automatically.
B bairdy New Member Licensed User Longtime User Nov 12, 2011 #3 No it doesn't scroll through the status bar at all. I mean how when a message is received the message scrolls through the status bar.
No it doesn't scroll through the status bar at all. I mean how when a message is received the message scrolls through the status bar.
B bairdy New Member Licensed User Longtime User Nov 15, 2011 #5 It is what scrolls through the status bar as shown in the screenshot. In the Android documentation it says that when the Notification object is created the ticker text is defined. It is not set in setLatestEventInfo but in the object creation. Status Bar Notifications | Android Developers Thanks for following this up Erel
It is what scrolls through the status bar as shown in the screenshot. In the Android documentation it says that when the Notification object is created the ticker text is defined. It is not set in setLatestEventInfo but in the object creation. Status Bar Notifications | Android Developers Thanks for following this up Erel
Erel B4X founder Staff member Licensed User Longtime User Nov 15, 2011 #6 Thank you. Now I see. In the meantime you can use Reflection library: Code: Copy Dim n As Notification n.Initialize n.SetInfo("aaaaa", "bbbbbbb", Main) n.Icon = "icon" Dim r As Reflector r.Target = n r.SetField("tickerText", "fkljw flkjwef lwje flwe jflwfe jwlfj wlf ", "java.lang.String")
Thank you. Now I see. In the meantime you can use Reflection library: Code: Copy Dim n As Notification n.Initialize n.SetInfo("aaaaa", "bbbbbbb", Main) n.Icon = "icon" Dim r As Reflector r.Target = n r.SetField("tickerText", "fkljw flkjwef lwje flwe jflwfe jwlfj wlf ", "java.lang.String")
H Hendrik Member Licensed User Longtime User Nov 17, 2011 #7 I tried it, but nothing happend. Even if I call n.notify(1)...
Erel B4X founder Staff member Licensed User Longtime User Nov 17, 2011 #8 Do you see the notification icon? If not please post your complete code.