0
I wanted to open a directory on android, I tried so:
public void openFolder()
{
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
Uri uri = Uri.parse(Environment.getExternalStorageDirectory().getPath()
+ "/Pictures/");
intent.setDataAndType(uri, "text/csv");
startActivity(Intent.createChooser(intent, "Open folder"));
}
But it’s time to call "impossible to find application to perform this action"
I just wanted to open the directory
Your goal is to select some file that your application will use?
– André Ribeiro
my goal is to normally open the folder with all files, the application will not last.
– War Lock
The problem is that not everyone has a file manager installed. What happens if you change
text/csv
for*/*
?– André Ribeiro
appears to choose Contacts, photos, and gallery, but I want my folder
– War Lock
I believe that without a file manager installed you will not be able to open and browse the directory. Would it be feasible for you to create an Activity to list the contents of the directory? I think it would be your only option.
– André Ribeiro
but I need to open, and delete the files, if that’s possible from right
– War Lock
Let’s go continue this discussion in chat.
– War Lock