Can we download selected .xml files from server to our sdcard? [closed]

Yes, you can make any outbound HTTP connection you wish. If you know the URL of the file you want to download, just perform an HTTP GET on it.

you must request the INTERNET permission.

<uses-permission android:name="android.permission.INTERNET" />

From there, it’s just a matter of using the Apache HTTP client libraries that are part of the Android SDK,

For an example using HTTP client, you can look at this source file,

and find the readUrl() method. there are many, many other examples of using Apache HTTP client out there, just Google for it.

Leave a Comment