[android-developers] Re: can I get XML information step by step using SaxParser??

2009-10-15 Thread Stefan
hi, any ideas how i can send back my collected trackpoints if I have read 50 (the SaxParser parse 50 trackpoints in one second in my app) for example? If I use this in the startElement function,: else if (localName.equals("trkpt")) { .. if(counter%50 == 0) { gpxHandler.sendEmpty

[android-developers] Re: can I get XML information step by step using SaxParser??

2009-10-14 Thread Stefan
Hi, > You can use these events to do whatever you need at any point in the > document. So once we reach the start  of we know all waypoints > have been read right? > Yes > You should call the parser in a background thread so your UI thread > can respond to a call from the parser when it reaches

[android-developers] Re: can I get XML information step by step using SaxParser??

2009-10-14 Thread Smelly Eddie
SaxParser "walks" through an XML file calling key events "startElement", "endElement", and others. You can use these events to do whatever you need at any point in the document. So once we reach the start of we know all waypoints have been read right? You should call the parser in a background