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.

2
  • 2
    stackoverflow.com/questions/5360628/… Possible duplicate? Commented Mar 5, 2012 at 5:41
  • no, that is very confusing, can you give any example link that will use further for us code... Commented Mar 5, 2012 at 5:42

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.