Android Question XML SAX parser: indication of progress

JdV

Active Member
Licensed User
Longtime User
Hello

Is there a way to tell how far through an XML file the XML parser has progressed?

At the moment I use "ProgressDialogShow" when the process starts and "ProgressDialogHide" when the file's closing element is read but it would be nice to be able to show a simple message like "Processed: 23kb of 100kb" in a label that gets updated periodically.

Regards

Joe
 

JdV

Active Member
Licensed User
Longtime User
The ones I'm experimenting with are only a few hundred lines/few hundred kb. On my Google Pixel C it takes less than a second to import.

However on the emulator and older devices it takes longer and in future I would be looking at importing much larger files.
 
Upvote 0
Top