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



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. Good for Beginners
View Tutorial          By: Srinivasula Reddy at 2009-11-05 02:04:25

2. Wow Such a good tutorial. It really really make me
View Tutorial          By: Anonymous at 2010-02-19 05:53:11

3. Explanations and examples are more clear. I like i
View Tutorial          By: Rajkumar S at 2010-07-12 22:28:40

4. sUPER eXPLAnation
View Tutorial          By: Surendra at 2015-06-13 07:23:56

5. Thank you
View Tutorial          By: vbulletincoder at 2011-09-13 13:16:40

6. hi everybody....

please use comm.j

View Tutorial          By: manoj at 2012-09-24 10:41:34

7. i found this very pleasing for both my brain and m
View Tutorial          By: Matthew Redisons at 2012-10-03 14:36:32

8. the below error can be solve by another version co
View Tutorial          By: prasad raju v at 2010-04-08 04:20:10

9. sooooooooooooooooo gr8 jop!!
View Tutorial          By: monti at 2011-06-14 08:40:55

10. i want to SCJP exam ,tell how to apply for this ex
View Tutorial          By: PRABAKARAN at 2013-07-16 13:32:50