Android Tutorial 9: Integrating Web Services Into Your Android App

In this tutorial we demonstrate how to integrate web services into your app. For demonstration purposes, we show how to integrate with a Last.FM web service to deliver a “Top Tracks” app. We show how to issue HTTP requests to a web service and how to parse the JSON strings we get in the response. We also look at how to properly code this up in Android’s AsyncTasks so the fetch happens in the background. Finally, we look at how to render the fetched data in a custom ListViewAdapter. You can download the source code from my blog: http://www.themobilemontage.com/2012/11/29/successfully-integrating-web-services-into-your-android-apps/