Apple released iPhone OS 4.0 developer preview beta 2 with new SDK.
Just updated to iPhone OS 4.0 beta 2.
Somewhat faster than beta 1 in general UI interaction.

Apple released iPhone OS 4.0 developer preview beta 2 with new SDK.
Just updated to iPhone OS 4.0 beta 2.
Somewhat faster than beta 1 in general UI interaction.

This is a simple example parsing twitter xml in Android
Here is the sample tweet data (one entry is one tweet)

Parsing XML with DOM method is an iterative process.
As you can see below, continuously use NodeList and Node object to explore the elements of XML document
In this example, I extracted <name> element under the <author>

To get geolocation information, we need to implement LocationListener
public class GPSTesting extends ListActivity implements LocationListener {
Then, the location information will be delivered by these callback methods

in onCreate method, we can initialize locationManager and bestProvider

We can extract latitude and longitude data from the Location object just like this
mLongitude = location.getLongitude();
mLatitude = location.getLatitude();

I used latitude and longitude data to retrieve nearby twitter users.

By the way, New York is really hot! (…What?)