Hello,
I know I've asked this before but I obviously don't understand it fully as I can't seem to get messages to run at the right time.
I want the first message to show, then the code to run, then the 2nd message to show.
At the moment it runs very fast, but if i have lots of images, or want to export to somewhere other than the camera roll it will be slower. Currently, the first message and the second message show at the same time.
I tried
in btnShare_Click but that made no difference. I also tried putting the messages into their own sub and calling them delayed but that also didn't help.
Sorry for a repeat question, and thanks for any help
I know I've asked this before but I obviously don't understand it fully as I can't seem to get messages to run at the right time.
I want the first message to show, then the code to run, then the 2nd message to show.
B4X:
Sub btnShare_Click
HD.ToastMessageShow("Exporting...", False)
UploadFiles
End Sub
Sub UploadFiles
For n = 0To clvPics.GetSize - 1
Dim pnl AsPanel
pnl = clvPics.GetPanel(n)
img1.Initialize("")
img1 = pnl.GetView(0)
phoneSave.AddImageToAlbum(img1.Bitmap)
Next
HD.ToastMessageShow("Images exported", False)
End Sub
I tried
B4X:
callsubdelayed(Me, UploadFiles)
Sorry for a repeat question, and thanks for any help