Android Question Cannot see messages

Abílio Magalhães

Member
Licensed User
Longtime User
Hello to all...

Does anyone knows why I can't see either toastmessageshow or progressdialogshow in my App?

The only thing that pop-up is the msgbox, but that I don't want.

CODE:

Code: Copy
        Dim month As String
    Dim year As String
    year = DateTime.GetYear(DateTime.Now)
    month = DateTime.GetMonth(DateTime.Now)


    Dim result As Int
    result = Msgbox2("BLABLABLA","BLA","YES","","NO",Null)
   
    If result = DialogResponse.POSITIVE Then
       
        ToastMessageShow("Loading...",True)
       
        ProgressDialogShow("Loading...")
       
       
        SQL1.Close
       
        Dim zip As Archiver
        zip.Gzip("/mnt/sdcard/","database.db","/mnt/sdcard_ext/")
       
        SQL1.Initialize(File.DirRootExternal, "database.db", True)

        ProgressDialogHide
       
       
Else
        Return
       
    End If


If I put msgbox instead of toast message it will show.
The progress dialog don't show either.

Does anyone knows why?
And why the progressdialogshow usually don't spin?
For the loops and for cycles I do DoEvents and it will spin, in another case it won't.


Thank you all for the help.
Best regards.
 
I've added more DoEvents and know it worked.

Put one after each process and know the messages pop-up properly, but the ProgressDialogShow still don't spin, but that's a minor problem
;)
 
Upvote 0
You could create a thread for the zipping process... A thread will not block the ProgressDialog. The zip-process do block the ProgressDialog
 
Upvote 0
Ohh.. like a new module , then call it when I want to zip the file, is that it?

Or just a method, and call it ?

That's what I thought, because it seems to stop spinning when the zip process starts.

If I call a thread to zip, where do I put the ProcessDialogHide ? Inside the thread or inside the first statement?

regards.
 
Upvote 0
Back
Top