I want to display a message while a file is loading into a List so that the user knows that his button click has been received, as below:
Unfortunately, the ToastMessageShow message is displayed AFTER the file has been read (that takes a little while, the file can be big), which defeats the purpose.
How can I be sure the message is displayed immediately before the file is being read?
Is there another way to tell the user that the function is being processed?
B4X:
Sub Button1_Click
ToastMessageShow( "Opening File...", True )
lstRecords = File.ReadList( AppFolder, FileName.Text )
' do other processing that updates the display...
End Sub
How can I be sure the message is displayed immediately before the file is being read?
Is there another way to tell the user that the function is being processed?