Tommy wrote:
> My
> next question is where is that folder located

Call getFilesDir() from your activity to get to the application-local
file storage area.

> and how to I go about
> saving a file to it?

Java I/O works:

http://exampledepot.com/taxonomy/term/164

> Is there an easy way to just pass the URL for the
> xml file and have it save or would I need to open a file reader read the
> file to another document builder and then save it?

Neither. You will wind up with the file in memory, either via a URL:

http://exampledepot.com/egs/java.net/ReadFromURL.html

or via HttpClient:

http://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.0.x/httpclient/src/examples/org/apache/http/examples/client/ClientWithResponseHandler.java

Then, use Java I/O to save it to a file.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android 2.x Programming Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to