Hi all,
Within a B4X app (in my case B4XPages app) I need to stop (and inform the user) that the app can't download the data (tipically when te ws service isn't available or in other case where I can't have a json to parse and use to show data).
Is my code correct for a B4X app ? I mean, which is the correct way to stop the app execution and show a msgbox to the user in a compatible way for B4X apps?
Within a B4X app (in my case B4XPages app) I need to stop (and inform the user) that the app can't download the data (tipically when te ws service isn't available or in other case where I can't have a json to parse and use to show data).
Is my code correct for a B4X app ? I mean, which is the correct way to stop the app execution and show a msgbox to the user in a compatible way for B4X apps?
B4X:
'B4XMainPage / B4XPage_created
If NoData = true Then
Private nSecs As Int = 10
xui.MsgboxAsync("I can't download the app contents in this moment", Application.LabelName)
Sleep (nSecs * 1000)
ExitApplication
End If