Android Question Display long string in Notification Builder

DickD

Active Member
Licensed User
I'm trying to display a long text string either in the .ContentTitle or .ContentText fields of notification builder. I have used this library for other notifications and know that it works. But I can't figure out how to implement this aspect. I assume it has something to do with BigText and have tried every combination of initialize and .SetStyle I can think of. Nothing has worked. A simple example would be appreciated.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
upload_2017-2-27_8-16-43.png


B4X:
Sub Activity_Click
   Dim nb As NotificationBuilder
   nb.Initialize
   nb.ContentText = "Asfasf"
   nb.ContentTitle = "sdfsdfsdf"
   nb.SmallIcon = "icon"
   nb.setActivity(Me)
   Dim style As NotificationBigTextStyle
   style.Initialize
   style.BigText = $"sd jlikfj kerlsgj erlkwg
erjg klerjg lker jglkerj glker g
erg jkler gjlker jglker gwe jflkwejflkwef
wefwe jkflw ejlkfjw elfkjwe lfkjwe lkfwe f
wef jkwlefj lwkefj lwkefj lkwe"$
   nb.SetStyle(style)
   nb.Notify(1)
End Sub
 
Upvote 0
Top