-
public class StorageIdCreated on 03/06/21
-
-
Method Summary
Modifier and Type Method Description final StringgetPRIMARY()For files under Environment.getExternalStorageDirectory final StringgetDATA()For files under Context.getFilesDir or Context.getDataDir. final StringgetKITKAT_SDCARD()To access SD card in Kitkat, use sdcardas the storage ID, instead of the actual ID like15FA-160Cfinal StringgetHOME()For /storage/emulated/0/DocumentsIt is only exists on API 29--
-
Method Detail
-
getPRIMARY
final String getPRIMARY()
For files under Environment.getExternalStorageDirectory
-
getDATA
final String getDATA()
For files under Context.getFilesDir or Context.getDataDir. It is not really a storage ID, and can't be used in file tree URI.
-
getKITKAT_SDCARD
final String getKITKAT_SDCARD()
To access SD card in Kitkat, use
sdcardas the storage ID, instead of the actual ID like15FA-160C
-
-
-
-