Android Question newest Dialogs library

scottie

Member
Licensed User
Longtime User
I am having such a hard time locating the latest Dialogs library.
Google says it's installed when I update. Nope.

can only find v4.01 from 2017. from B4x searchbox.

I can't get past adding
' Declare MsgboxAsync in Process_Globals for it to be ready
Private msa As MsgboxAsyc

to Sub Process_Globals cuz i get the 'are you missing a library'
yes i tried enabling dialogs v4.01 but of course does not stop this error msg

Can someone please direct me to where I can d/l the latest dialogs library files?

-Scott
 

Mariano Ismael Castro

Active Member
Licensed User
Dialog:
xui.MsgboxAsync


This is what you should use.

Ideally, you should start a B4XPages-type project.
The second step is to upload a small project to help you out.
And also post in the Q&A forum.
 
Upvote 0

Mariano Ismael Castro

Active Member
Licensed User
i'm also trying to use the Await command. another reason I need the newest version of Dialogs
Dialogs:
Private Sub Button1_Click
    xui.MsgboxAsync("Hello world!", "B4X") 'Option 1
    
    
    Dim sf As Object = xui.Msgbox2Async("Delete file?", "Title", "Yes", "Cancel", "No", Null) 'Option 2
    Wait For (sf) Msgbox_Result (Result As Int)
    If Result = xui.DialogResponse_Positive Then
        Log("Deleted!!!")
    End If
    
End Sub
 
Upvote 1

scottie

Member
Licensed User
Longtime User
OMG. Why is finding a simple library so difficult here? Files are all over the place in forums?
I went to look at your suggestion for XUI views, but no where on that page can you d/l that library.
By the way, thanks for helping me.
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
The dialog libs are part of XUIViews, which are now also part of the internal Libraries!
This means that they are as up-to-date as the IDE itself!
 
Upvote 0

scottie

Member
Licensed User
Longtime User
Thanks Cableguy. in a roundabout way i was able to make my app work. still can't use the await sleep(1000) command :)
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
Thanks Cableguy. in a roundabout way i was able to make my app work. still can't use the await sleep(1000) command :)
the keyword is either sleep(1000) for a pause of 1sec in the execution, or wait for will pause the execution until a condition is met!
these are part of the resumable subs structure.
the best would be for you to present a small project with what you intent to achieve, or post some of the relevant code you have going so that we can advise better

You can check this tutorial for further info about resumable subs
 
Last edited:
Upvote 0
Top