[android-developers] How to READ a MODE_WORLD_READABLE file from ANOTHER application
Hello,
The docs say:
"MODE_WORLD_READABLE File creation mode: allow all other applications
to have read access to the created file."
So I can do this:
public void writeTextFile() {
String FNAME = "test.txt";
String CONTENT = "Write this test string to test.txt file";
FileOutputStream fOut = null;
OutputStreamWriter osw = null;
try{
fOut = openFileOutput(FNAME, Context.MODE_WORLD_READABLE );
osw = new OutputStreamWriter(fOut);
osw.write(CONTENT);
osw.close();
fOut.close();
}catch(Exception e){
e.printStackTrace(System.err);
}
}
Now, how do I READ it from ANOTHER application?
Thanks for your help.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home