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. Can I ask something,

Can you show m

View Tutorial          By: wawa at 2014-05-03 15:28:35

2. Good
View Tutorial          By: Siva Sreekanth at 2013-10-01 16:29:55

3. Seems to be the best tutorial on this topic. At le
View Tutorial          By: Bob Nickson at 2008-08-26 02:50:29

4. wehhh... so so so difficult
View Tutorial          By: sam at 2013-02-28 01:55:41

5. Hi Ramalak,
My modem is connected to COM3 p

View Tutorial          By: divya at 2008-04-30 23:19:26

6. too difficult example..
no good

View Tutorial          By: giorg at 2012-01-11 22:58:14

7. Thanks for the help, however I am having some diff
View Tutorial          By: Andrew at 2008-09-30 14:51:14

8. w0w amazing
View Tutorial          By: elvin at 2009-01-05 01:00:13

9. your tutorial is very helpful...
i was hopi

View Tutorial          By: Zero17 at 2009-08-15 09:17:16

10. hai i have downloaded the above sms source code i
View Tutorial          By: arunram at 2009-10-28 01:42:51