Hi,
I have a Problem with the ProgressDialog when it´s called from a Msgbox2
The "Download.DoDownload" starts an HttpJob.
If I press the Button1 the ProgressDialog is shown, the download starts and an Toastmessage is shown OnSuccess.
That is the way how it should work.
If I call the Download with an MessageBox Event, The ProgressDialog is hidden when the "SubmitJob" from the HttpUtils2Service is called.
Attached the Project. It would be nice if someone could confirm the bug or knows a workaround
thanks
moosi
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
			
			I have a Problem with the ProgressDialog when it´s called from a Msgbox2
The "Download.DoDownload" starts an HttpJob.
If I press the Button1 the ProgressDialog is shown, the download starts and an Toastmessage is shown OnSuccess.
That is the way how it should work.
If I call the Download with an MessageBox Event, The ProgressDialog is hidden when the "SubmitJob" from the HttpUtils2Service is called.
Attached the Project. It would be nice if someone could confirm the bug or knows a workaround
thanks
moosi
			
				B4X:
			
		
		
		Sub Button1_Click
    StartDownload
End Sub
Sub Button2_Click
    Msgbox2("msg","Do you want to start the download?", "Question", Array("yes", "no"))
End Sub
Sub msg_Click(ButttonText As String)
    If ButttonText = "yes" Then
        StartDownload
    Else
        Log("No")  
    End If
End Sub
Sub StartDownload
        hd.ProgressDialogShow("Loading")
        Download.DoDownload
End Sub
Sub EndDownload
    hd.ProgressDialogHide
    hd.ToastMessageShow("Download finished",False)   
End Sub 
				 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		