What got me to this point:
I wrote an XML web service that provides data from a CRM that is stored in a database. The purpose of the XML web service is so I can provide a limited set of data read-only to the outside world in a format that is easy for other applications to connect to and read from. (or so I thought).
My Specific Question:
I need to write an application in Android that can parse XML from this web service and present it to my user in a native application. What is the recommended way to connect to a web-site and pull it’s XML down and parse it into an object?
Notes:
I cannot show you an example of the XML because the test server currently is not Internet facing (it will be soon enough). I am also not worried about the GUI development. I will tackle that after I get the data to the handset =).
Here is some SAX code from one of our Android apps.
And the download code it has
And isNetworkAvailable
You probably want to edit downloadFile so there is some consequence if isNetworkAvailable returns false.
EDIT: I removed some code that may have been in your way. I gave everything a generic name that starts with “my” instead of what was in my code.