Android Question Multiline Notification

RandomCoder

Well-Known Member
Licensed User
I've searched the forum and it appears that I need to use Barx's library
Notification Builder Library.

But this is overkill for what I need and just wanted to check that it can't be done with the standard built-in notification object.
Basically I just want the standard app icon and two lines of text. The first line is the title of a music track that is being played and the second line is the elapsed time and duration. It doesn't matter if I use CRLF or just Chr(13), both strings end up on the same line.

B4X:
n.SetInfo("UPNP Browser", currentlyPlaying & Chr(13) & duration, "")
n.Notify(1)

OR...

n.SetInfo("UPNP Browser", currentlyPlaying & CRLF & duration, "")
n.Notify(1)
Is the only option to use one of the other libraries?
 

Mahares

Well Known Member
Licensed User
Why can't you do this:
B4X:
sNotify.SetInfo("UPNP Browser:  " & currentlyPlaying , duration, "")
 

RandomCoder

Well-Known Member
Licensed User
Thanks @Mahares that will do me nicely, I'd just not thought of it. :D
 
Top