Programming Tutorials

Comment on Tutorial - Reading and Writing a file to SD card sample program in Android By Ashley



Comment Added by : amithooda

Comment Added at : 2012-06-11 06:43:00

Comment on Tutorial : Reading and Writing a file to SD card sample program in Android By Ashley
gud tutorial but the permission denied is because of two things,,
1 in android manifest file user havnt added write external storage permisison

2 sdcard is not mounted so user can check it
if(!Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())){
Toast.makeText(this, "External SD card not mounted", Toast.LENGTH_LONG).show();
}

so first mount sdcard :)


View Tutorial