Thanks for all the input everyone! I'm going to mess with this and see what
happens. Hopefully I won't need any more assistance on this issue. Thanks
for everyone's time!

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Mark Murphy
Sent: Thursday, April 22, 2010 3:17 PM
To: [email protected]
Subject: Re: [android-developers] Save file to sd card?

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/htt
pclient/src/examples/org/apache/http/examples/client/ClientWithResponseHandl
er.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

-- 
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