Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

getExternalStorageDirectory return phone storage - not sdcard

Tags:

java

android

Hello this (getExternalStorageDirectory) return phone storage. How to get phone storage AND SDCARD?

like image 634
TheShinePL Avatar asked Nov 01 '22 09:11

TheShinePL


1 Answers

Take note of this text in the getExternalStorageDirectory documentation:

<...>Traditionally this is an SD card, but it may also be implemented as built-in storage in a device that is distinct from the protected internal storage <...>

There are number of answers to your question about access to the secondary sdcard, for example here and here

like image 174
Kirill K Avatar answered Nov 13 '22 21:11

Kirill K