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
 

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
Cookies are required to use this site. You must accept them to continue using the site. Learn more…