I've seen how to write to internal storage using this method..
public void storeSerializedObject(MyObject theObject) {
FileOutputStream fileOut = null;
String fileName = theObject.getName();
try {
fileOut = context.getApplicationContext().openFileOutput(
fileName + ".ser", Context.MODE_PRIVATE);
ObjectOutputStream out = new ObjectOutputStream(fileOut);
out.writeObject(theObject);
out.close();
fileOut.close();
} catch (IOException i) {
i.printStackTrace();
}
}
The thing is I want to place theObject in some new specified directory.
Then eventually search that directory for all .ser files, and deserialize each object.
So basically, how would you do that?
Also, using the above approach to file storing, is there a way to check that default unnamed location for a list of all filenames within its contents?