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. class Abc
{
public void display()
View Tutorial          By: Umapathi REddy at 2012-05-23 09:54:29

2. i am MCA student and i have completed bca, so can
View Tutorial          By: shilam kumari at 2014-01-12 11:08:05

3. Sir. Please give an example which is small and und
View Tutorial          By: Rafik at 2011-08-17 19:45:04

4. a pretty good site for learners
View Tutorial          By: chaitra at 2011-12-15 10:09:14

5. this is not good example we want better...
View Tutorial          By: sabari nathan.p at 2011-06-15 03:27:18

6. I am receiving an error as
Error java.lan

View Tutorial          By: pablo at 2014-08-03 16:10:55

7. i did the same thing..but it s nt working.. :(
View Tutorial          By: dEviL at 2008-12-03 10:20:31

8. Thanks..
It is so easy to understand...

View Tutorial          By: Rahul Meshram at 2008-09-11 13:18:41

9. where i can find jar files?
please tell me

View Tutorial          By: chandu at 2012-06-17 14:14:28

10. Thx for the explanation, I understand what recursi
View Tutorial          By: Tina at 2008-12-15 16:39:27