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. thanks a lot fo the help offered.
View Tutorial          By: Douglas Olupotdolupot@cit.mak.ac.ug at 2012-10-31 05:37:04

2. @Adam:
CompareTo returns the difference of

View Tutorial          By: Azher at 2010-01-29 12:23:39

3. Excellent tutorial thank you very much.

View Tutorial          By: Edd at 2012-01-15 10:49:00

4. nice example . and good job.
View Tutorial          By: mohit sinha at 2011-04-07 03:19:01

5. Hello, I have executed the above code and it works
View Tutorial          By: Sana at 2010-02-01 03:49:44

6. Hi,

I think this is not a correct d

View Tutorial          By: Dinesh Chopra dc at 2013-03-19 04:30:48

7. I have successfully send sms after some trying....
View Tutorial          By: DILIP at 2012-01-19 14:38:50

8. good
View Tutorial          By: thamim at 2012-09-01 03:22:26

9. can you help me in codings for get an output like
View Tutorial          By: Sudhar at 2011-08-24 05:47:53

10. How to sort an Arraylist in some given order? Say,
View Tutorial          By: Arunava Chatterjee at 2015-03-07 04:17:51