6 Download data from Internet and Parse the data

Video 45 – Downloading data from Internet

XML Viewer :

http://codebeautify.org/xmlviewer

In Android, use Asynchronous programming for doing these kind of tasks. The idea is not to block the UI waiting for something to complete.

Asynchronous – we send off a request to do something, but we don’t wait on the response. But we ask the platform to inform us when the task gets completed.

Android has given us a mechanism – AsyncTask

We are going to create a private inner class that’s part of Main Activity class.

 

 

 

Leave a comment