
Untitled
By: a guest on
May 1st, 2012 | syntax:
None | size: 0.44 KB | hits: 16 | expires: Never
File not found issue in Android
FileReader fr = new FileReader("myfile.txt");
File ff = new File("myfile.txt");
String state = Environment.getExternalStorageState();
if (Environment.MEDIA_MOUNTED.equals(state)) {
File options = new File(getAppDirectory(), "portal.xml");
}
private String getAppDirectory() {
return new String(Environment.getExternalStorageDirectory().toString()
+ "/foldername/foldername/");
}