I want to store a file on the SD card using File
. I already achieved to store a file in external storage (named internal storage in my file explorer app. This is NOT the SD card).
I read much about storing data on SD cards and often saw:
new File(Environment.getExternalStorageDirectory() + "/MyFile")
But this will store the file on external storage and not on the SD card. So how can I store a file on the SD card and not on external storage?