1

Thanks in advance, How to read csv file from sdcard. and how to give the permission of read/writer for file in android application.

thanks again.

Manoj Kumar
  • 587
  • 2
  • 9
  • 20

1 Answers1

1

This might be helpful to you

   File dir = Environment.getExternalStorageDirectory();
   File f = new File(dir, "path/dir1/sdcard.ext");

I don't know about the permissions but the above will certainly allow you to read the file from the sdcard in the path directory.

jmishra
  • 2,086
  • 2
  • 24
  • 38