I have a problem with android emulator. I need to choose a file from sdcard e send it to a WS. The running emulator is a Nexus 5 with android 6. I've searched everyehere, but none of the solution works. I use this code to open a file explorer:
Intent intent = new Intent();
intent.setAction(Intent.ACTION_GET_CONTENT);
intent.setType("file/*");
startActivity(intent);
but when I run the code, I can't find the file on the sdcard. I put the files with adb istructions and in the File Explorer of Android Device Monitor I can see the files. Farther, iI can see the picture if I search in the Gallery of the emulator. Which is the problem? Where is my error? I tried also Dev Tool>Media Provider