running a code like this
I have sometimes wrong behaviour of progressdialog, that disappear.
On Ipad it works fine, but on Iphone12 not.
I tried to put a "progressdialog.hide" before "progressdialog.show" and it works better (but you see some flicker). Anyway it is not reliable.
I like this progressdialog because it's very simple to use when you are doing something in a loop and wants to show progress while userinteraction is blocked.
But, how to make it works perfect ?
I checked also as suggested in another thread B4XDialog, but can't find how to do the equivalent of progresdialog.
B4X:
For RecordPointer=0 To ExportList.Size-1
If RecordPointer>xx Then
hd.ProgressDialogShow("exporting " & Floor(100*RecordPointer/ExportList.Size) & "%")
Sleep(0)
xx=xx+100
End If
' do some tasks with database and with HTTP (with "Wait for" also)
Next
I have sometimes wrong behaviour of progressdialog, that disappear.
On Ipad it works fine, but on Iphone12 not.
I tried to put a "progressdialog.hide" before "progressdialog.show" and it works better (but you see some flicker). Anyway it is not reliable.
I like this progressdialog because it's very simple to use when you are doing something in a loop and wants to show progress while userinteraction is blocked.
But, how to make it works perfect ?
I checked also as suggested in another thread B4XDialog, but can't find how to do the equivalent of progresdialog.