when i was inserting the bitmap image to files directory, it showing file not found exception and it is showing Is a Directory.
Here is my code:
File sdcard = Environment.getExternalStorageDirectory();
File dir = new File(sdcard.getAbsolutePath() + "/text/");
dir.mkdir();
File file = new File(dir, "sample.txt");
FileOutputStream os = null;
try {
os = new FileOutputStream(file);
os.write(enterText.getText().toString().getBytes());
os.close();
}
catch (IOException e) {
e.printStackTrace();
}