Answer the question
In order to leave comments, you need to log in
How to access sd card on android?
How to access the removable sd card on android 4.4 and higher?
It is necessary to add the ability to transfer some application data to an external card from the application itself. (in code).
Log.d(TAG, "" + Environment.getExternalStorageDirectory());
Log.d(TAG, "" + this.getApplicationContext().getExternalFilesDirs(null));
Log.d(TAG, "" + this.getApplicationContext().getExternalFilesDir(null));
/storage/sdcard0
/storage/sdcard0/Android/data/com.package/files (single element array)
/storage/sdcard0/Android/data/com.package/files
String strSDCardPath = System.getenv("SECONDARY_STORAGE");
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.STORAGE" />
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question