How can I access a folder in the internal memory in Android? [closed]

1

I can not find the way to access a folder on android. I have some images that I copy when I create my application in a route of the internal memory, I want that when pressing a button this folder is opened, but I do not know how to do it or where to start?

    
asked by jeanpitx 19.09.2017 в 01:06
source

1 answer

2
public void openFolder(){
   Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
   Uri uri = Uri.parse(Environment.getExternalStorageDirectory().getPath()
       +  File.separator + "myFolder" + File.separator);
   intent.setDataAndType(uri, "text/csv");
   startActivity(Intent.createChooser(intent, "Open folder"));
}

I hope this helps you get started

    
answered by 19.09.2017 в 09:18