Hi, I was wondering if there is a simple way to upload and download
data to and from a directory in a server. If I have load and download
from a directory at http://server.com/filedir, How should I go about
sending the data to a server and giving it a name so that I could
download the same data later? I wrote a method before with java that
saves an arraylist to and from my own pc like this
String filename = "userlist.dat";
String directory = "dat";
FileOutputStream fos = null;
ObjectOutputStream out = null;
try {
fos = new
FileOutputStream(directory+File.separator+filename);
out = new ObjectOutputStream(fos);
out.writeObject(userlist); /////The arrayList
(userlist) I wanted
to save
out.close();
fos.close();
}
catch(IOException ex){
System.out.println("saving list error");
}
I was wondering if there is a similar method as that.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---