Reputation: 507
The application that am working has to access the files stored on a tablet in the internal storage folder. Can any one tell me how to get access to it?
Upvotes: 1
Views: 12977
Reputation: 1092
You can use :
File f = new File(Environment.getExternalStorageState());
Upvotes: -1
Reputation: 34265
See internal storage section of android data storage document..
I think you should use ContextWrapper..Personally I never tried this..
ContextWrapper cw = new ContextWrapper(context);
File directory = cw.getDir("your music folder name here", Context.MODE_PRIVATE);
please check directory is null or not before you use it..
See this thread..this might help you
Upvotes: 1
Reputation: 9745
What about this?
return Environment.getExternalStorageDirectory().toString() + "/Music";
Upvotes: 8