Android Question [SOLVED] XmlSax and ProgressDialogShow2

clarionero

Active Member
Licensed User
Longtime User
Hi.

I'm parsing an XML with XmlSax library. It works perfectly, but I would like to put a ProgressDialogShow to indicate that the XML is being processed.

B4X:
ProgressDialogShow2("Processing the data...",False)
parser.parse(ConvertStringToInputStream(sDatosXml), parser)
ProgressDialogHide

If I run the application the message is not displayed.
If I put a breakpoint in ProgressDialogShow2 and go step by step with the debugging the message is displayed and everything works ok.

Any ideas?

Thank you

Rubén
 

DonManfred

Expert
Licensed User
Longtime User
B4X:
ProgressDialogShow2("Processing the data...",False)
sleep(50)
parser.parse(ConvertStringToInputStream(sDatosXml), parser)
sleep(50)
ProgressDialogHide
?
 
Upvote 0

clarionero

Active Member
Licensed User
Longtime User
Woow you are the best DonManfred ;)

I had done tests with Sleep(0) and doevents. Your solution works perfectly.

Thank you

Rubén
 
Upvote 0
Top