Android Question ToastMessageShow and WithButton that does not close

EduardoElias

Well-Known Member
Licensed User
Longtime User
Hi there

I am using ToastMessageShow version 2.1 with B4A 8 in a 4.4.4 android

Following code:

Dim Toast As ToastMessageShow
Toast.Initialize("OnToast")


B4X:
Sub MessageOk(aMsg As String)
    Toast.create(aMsg)
    Toast.withGravity(Toast.Gravity.TOAST_CENTER_BOTTOM)
    Toast.withTextSize(20)
    Toast.withTextColor(Colors.White)
    Toast.withButton("OK", "", "")
    Toast.Show
End Sub

The Toast message shows fine, the button is there, but clicking the button NEVER closes de toast.

What is wrong?

thanks
 
Last edited:

DonManfred

Expert
Licensed User
Longtime User
What is Toast?
 
Upvote 0

EduardoElias

Well-Known Member
Licensed User
Longtime User
I don't know which library you are using, however you don't really need one. Use a standard panel instead.
ToastMessageShow v2.10 library

actually I need a simple modal message dialog. Just to give a information and wait for a OK button action.
 
Upvote 0
Top