アプリケーションパッケージ名
- com.example.storagechecker
所有者
取り方 | 結果 |
---|---|
EXTERNAL_STORAGE | /storage/emulated/legacy |
getDataDirectory() | /data |
getDownloadCacheDirectory() | /cache |
getExternalStorageDirectory() | /storage/emulated/0 |
getExternalStorageState() | mounted |
getRootDirectory() | /system |
isExternalStorageEmulated() | true |
isExternalStorageRemovable() | false |
getFilesDir() | /data/data/com.example.storagechecker/files |
getCacheDir() | /data/data/com.example.storagechecker/cache |
getExternalFilesDir() | /storage/emulated/0/Android/data/com.example.storagechecker/files |
getExternalFilesDir(Music) | /storage/emulated/0/Android/data/com.example.storagechecker/files/Music |
getExternalFilesDir(Mydata) | /storage/emulated/0/Android/data/com.example.storagechecker/files/mydata |
getExternalStoragePublicDirectory() | /storage/emulated/0/Pictures |
getExternalCacheDir() | /storage/emulated/0/Android/data/com.example.storagechecker/cache |
追加ユーザ1
取り方 | 結果 |
---|---|
EXTERNAL_STORAGE | /storage/emulated/legacy |
getDataDirectory() | /data |
getDownloadCacheDirectory() | /cache |
getExternalStorageDirectory() | /storage/emulated/10 |
getExternalStorageState() | mounted |
getRootDirectory() | /system |
isExternalStorageEmulated() | true |
isExternalStorageRemovable() | false |
getFilesDir() | /data/user/10/com.example.storagechecker/files |
getCacheDir() | /data/user/10/com.example.storagechecker/cache |
getExternalFilesDir() | /storage/emulated/10/Android/data/com.example.storagechecker/files |
getExternalFilesDir(Music) | /storage/emulated/10/Android/data/com.example.storagechecker/files/Music |
getExternalFilesDir(Mydata) | /storage/emulated/10/Android/data/com.example.storagechecker/files/mydata |
getExternalStoragePublicDirectory() | /storage/emulated/10/Pictures |
getExternalCacheDir() | /storage/emulated/10/Android/data/com.example.storagechecker/cache |
追記
- 追加ユーザ2を作成して取得すると、/storage/emulated/11になっていた