Answer the question
In order to leave comments, you need to log in
XML is parsed very slowly under Android
I parse the xml-file as follows:
If you run the code in a normal application, the code is executed in a fraction of a second.
Under Android - 20 seconds.
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setNamespaceAware(false);
factory.setValidating(false);
DocumentBuilder builder = factory.newDocumentBuilder();
Document doc = builder.parse(is);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question