I am trying to create a new file using getExternalFilesDir(Environment.DIRECTORY_PICTURES)
but it is returning null. When I run Environment.getExternalStorageState() it is currently returning removed. This is currently only the case for Ice Cream Sandwich and Jelly Bean, as I have tested both Marshmallow and Nougat and it works fine. I am using an Emulator, how would I fix this?
Edit: I have also included read and write permissions in the Manifest. (read and write external storage)