It works similar to JAXP but tailored to work in J2ME environments (no access to system properties or file system) so name of parser class factory to use and its class used for loading (no class loader - on J2ME no access to context class loaders) must be passed explicitly.If no name of parser factory was passed (or is null) it will try to find name by searching in CLASSPATH for META-INF/services/org.xmlpull.v1.The file should later come from a server so the Android app (client) will download it and load the layout.I know that its impossible to do this with a plain layout file because for performance r Had to reword some methods because my partner is paranoid, lol./** * Resets the parser using the latest connection's reader.Reseting the parser is necessary * when the plain connection has been secured or when a new opening stream element is going * to be sent by the server.
The name of actual factory class will be determined based on several parameters.private static boolean wifi Connected = false; // Whether there is a mobile connection. It probably looks a bit more intimidating to use than the DOM or Pull parser, but it’s a lot .private static boolean mobile Connected = false; // Whether the display should be refreshed. the code may look longer sometimes, but it’s more clearer code then DOM or Pull-parser.Xml Pull Parser} configured for parsing Accurev XML files. * * @return a new [email protected] org.xmlpull.v1. Xml //Xml Pull Parser parser = Pull Parser(); //???????