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



Ask a Question

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. i have using struts tag in jsp ,
i have us

View Tutorial          By: sachin khatode at 2008-11-11 01:24:33

2. I need code for read write mifare 1k card using No
View Tutorial          By: amarendra at 2010-12-02 21:12:08

3. i don,t think so that it is sufficient to understa
View Tutorial          By: amit singh at 2009-05-27 06:54:20

4. Good work, IT really help me a lot;
View Tutorial          By: TUSHAR at 2010-02-03 01:25:37

5. nice article, many thanx :)
View Tutorial          By: Unknown at 2008-10-16 21:09:02

6. when i tried this code i couldnt run the program..
View Tutorial          By: kavitha at 2009-11-28 01:38:55

7. i am getting following error

Error

View Tutorial          By: Pavan at 2009-11-26 21:31:22

8. Can you tell me what will happen when I use a free
View Tutorial          By: Neo at 2012-04-04 16:21:35

9. As C does not support Function Overloading, there
View Tutorial          By: N at 2013-03-06 00:27:14

10. if i wanna push the data from my keyboard input, h
View Tutorial          By: andys at 2008-11-09 03:09:32