Android SDK: Parse a Read-Only XML File With XmlPullParser


show more Parsing a read-only XML file with XmlPullParser provides you with in-depth training on Developer. Taught by David Gassner as part of the Android SDK: Local Data Storage show less
please wait ...

Parsing a read-only XML file with XmlPullParser

I've previously described how to create and read files in both internal and external storage. You can also package read-only files as a part of your application as a resource, in the same ways you might package up a layout or a binary file. I'll describe how to do that and also how to parse XML using a class called the XML Pull Parser that's included with the Android SDK. In this version of the application, I've changed my layout so that it contains a ListView control.

A list view is designed to display a list of data, and I'm going to be retrieving the data from an XML file that's packaged with the application and displaying its data in this list. The layout also has a TextView control that I'll be able to use to display any type of information I want to the user. The MainActivity class has been changed so that it extends the ListActivity, and I'll be able to use this class and the layout to easily display a list of data. First, I'm going to describe ho...

Parsing a read-only XML file with XmlPullParser
Video duration: 11m 46s 3h 41m Intermediate

Viewers:

Parsing a read-only XML file with XmlPullParser provides you with in-depth training on Developer. Taught by David Gassner as part of the Android SDK: Local Data Storage

Subject:
Developer
Software:
Android Java
Author:
please wait ...