Fixed a bug in the RSS parser

This morning, OTempo was failing at least with the Santiago station. It was a bug in the XML SAX parser. I had already parsed a lot of XML documents before with the DOM API, but I have to confess that this was my first SAX parser. On Android, this model is recommended over DOM, because it is more memory efficient. I forgot that SAX can split node text contents, and this caused some unexpected null pointers.

When looking for more information about XML on Android, I have found this article from IBM, that simplifies even more the RSS parsing:
http://www.ibm.com/developerworks/opensource/library/x-android/index.html.

Of course, you have a new version in the market (1.4) with this bug solved. Download it here, as always:
market://details?id=org.otempo

Anuncios

Acerca de Rubén L.

Software Engineer
Esta entrada fue publicada en android, English y etiquetada , , , . Guarda el enlace permanente.

Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión / Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión / Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión / Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión / Cambiar )

Conectando a %s