AndroidアプリケーションでSystem.IOUtils.TPathのメソッドが返すディレクトリを簡単にまとめた。
各メソッドがどのようなディレクトリを返すのか、
どのディレクトリを使用するのが適切か、
をすぐに知りたいときに使えると思います。
間違いがあれば教えてください。<(_ _)>
System.IOUtils.TPath.GetLibraryPath
- 説明
JNIライブラリの保存場所 -
パス
/data/app-lib/<application ID> -
他のアプリケーションからアクセスできるか?
no -
ユーザーがアクセスできるか?
no -
アプリケーションを削除したときに削除されるか?
削除される
System.IOUtils.TPath.GetDocumentsPath
-
説明
ユーザーのドキュメントの保存場所 -
パス
/data/data/<application ID>/files -
他のアプリケーションからアクセスできるか?
no -
ユーザーがアクセスできるか?
no -
アプリケーションを削除したときに削除されるか?
削除される
System.IOUtils.TPath.GetHomePath
-
説明
ユーザーのドキュメントの保存場所 -
パス
/data/data/<application ID>/files -
他のアプリケーションからアクセスできるか?
no -
ユーザーがアクセスできるか?
no -
アプリケーションを削除したときに削除されるか?
削除される
System.IOUtils.TPath.GetSharedAlarmsPath
-
説明
ユーザーが選択できるアラームのファイルの標準の保存場所 -
パス
/storage/emulated/0/Alarms -
他のアプリケーションからアクセスできるか?
no -
ユーザーがアクセスできるか?
no -
アプリケーションを削除したときに削除されるか?
削除される
System.IOUtils.TPath.GetPublicPath
-
説明
他のアプリケーションと共有できるアプリケーションのデータの保存場所 -
パス
/storage/emulated/0/Android/data/<application ID>/files -
他のアプリケーションからアクセスできるか?
no -
ユーザーがアクセスできるか?
yes -
アプリケーションを削除したときに削除されるか?
削除される
System.IOUtils.TPath.GetSharedDocumentsPath
-
説明
他のアプリケーションと共有できるアプリケーションのデータの保存場所 -
パス
/storage/emulated/0/Android/data/<application ID>/files -
他のアプリケーションからアクセスできるか?
no -
ユーザーがアクセスできるか?
yes -
アプリケーションを削除したときに削除されるか?
削除される
System.IOUtils.TPath.GetDownloadsPath
-
説明
ダウンロードしたファイルの保存場所 -
パス
/storage/emulated/0/Android/data/<application ID>/files/Download -
他のアプリケーションからアクセスできるか?
no -
ユーザーがアクセスできるか?
yes -
アプリケーションを削除したときに削除されるか?
削除される
System.IOUtils.TPath.GetMoviesPath
-
説明
動画の保存場所 -
パス
/storage/emulated/0/Android/data/<application ID>/files/Movies -
他のアプリケーションからアクセスできるか?
no -
ユーザーがアクセスできるか?
yes -
アプリケーションを削除したときに削除されるか?
削除される
System.IOUtils.TPath.GetMusicPath
-
説明
音楽の保存場所 -
パス
/storage/emulated/0/Android/data/<application ID>/files/Music -
他のアプリケーションからアクセスできるか?
no -
ユーザーがアクセスできるか?
yes -
アプリケーションを削除したときに削除されるか?
削除される
System.IOUtils.TPath.GetPicturesPath
-
説明
画像の保存場所 -
パス
/storage/emulated/0/Android/data/<application ID>/files/Pictures -
他のアプリケーションからアクセスできるか?
no -
ユーザーがアクセスできるか?
yes -
アプリケーションを削除したときに削除されるか?
削除される
System.IOUtils.TPath.GetRingtonesPath
-
説明
着信音の保存場所 -
パス
/storage/emulated/0/Android/data/<application ID>/files/Ringtones -
他のアプリケーションからアクセスできるか?
no -
ユーザーがアクセスできるか?
yes -
アプリケーションを削除したときに削除されるか?
削除される
System.IOUtils.TPath.GetSharedDownloadsPath
-
説明
ダウンロードファイルの共有の保存場所 -
パス
/storage/emulated/0/Download -
他のアプリケーションからアクセスできるか?
yes -
ユーザーがアクセスできるか?
yes -
アプリケーションを削除したときに削除されるか?
削除されない
System.IOUtils.TPath.GetSharedMoviesPath
-
説明
動画ファイルの共有の保存場所 -
パス
/storage/emulated/0/Movies -
他のアプリケーションからアクセスできるか?
yes -
ユーザーがアクセスできるか?
yes -
アプリケーションを削除したときに削除されるか?
削除されない
System.IOUtils.TPath.GetSharedMusicPath
-
説明
音楽ファイルの共有の保存場所 -
パス
/storage/emulated/0/Music -
他のアプリケーションからアクセスできるか?
yes -
ユーザーがアクセスできるか?
yes -
アプリケーションを削除したときに削除されるか?
削除されない
System.IOUtils.TPath.GetSharedCameraPath
-
説明
カメラで撮った写真や動画の共有の保存場所 -
パス
/storage/emulated/0/Pictures -
他のアプリケーションからアクセスできるか?
yes -
ユーザーがアクセスできるか?
yes -
アプリケーションを削除したときに削除されるか?
削除されない
System.IOUtils.TPath.GetSharedPicturesPath
-
説明
画像の共有の保存場所 -
パス
/storage/emulated/0/Pictures -
他のアプリケーションからアクセスできるか?
yes -
ユーザーがアクセスできるか?
yes -
アプリケーションを削除したときに削除されるか?
削除されない
System.IOUtils.TPath.GetSharedRingtonesPath
-
説明
着信音の共有の保存場所 -
パス
/storage/emulated/0/Ringtones -
他のアプリケーションからアクセスできるか?
yes -
ユーザーがアクセスできるか?
yes -
アプリケーションを削除したときに削除されるか?
削除されない
Delphi XE6/C++Builder XE6で確認しました。
追記
Nexus 7(Android 5.0.2)
System.IOUtils.TPath.GetLibraryPath=/data/app/<Application ID>-2/lib/arm
System.IOUtils.TPath.GetDocumentsPath=/data/data/<Application ID>/files
System.IOUtils.TPath.GetHomePath=/data/data/<Application ID>/files
System.IOUtils.TPath.GetSharedAlarmsPath=/storage/emulated/0/Alarms
System.IOUtils.TPath.GetPublicPath=/storage/emulated/0/Android/data/<Application ID>/files
System.IOUtils.TPath.GetSharedDocumentsPath=/storage/emulated/0/Android/data/<Application ID>/files
System.IOUtils.TPath.GetDownloadsPath=/storage/emulated/0/Android/data/<Application ID>/files/Download
System.IOUtils.TPath.GetMoviesPath=/storage/emulated/0/Android/data/<Application ID>/files/Movies
System.IOUtils.TPath.GetMusicPath=/storage/emulated/0/Android/data/<Application ID>/files/Music
System.IOUtils.TPath.GetPicturesPath=/storage/emulated/0/Android/data/<Application ID>/files/Pictures
System.IOUtils.TPath.GetRingtonesPath=/storage/emulated/0/Android/data/<Application ID>/files/Ringtones
System.IOUtils.TPath.GetSharedDownloadsPath=/storage/emulated/0/Download
System.IOUtils.TPath.GetSharedMoviesPath=/storage/emulated/0/Movies
System.IOUtils.TPath.GetSharedMusicPath=/storage/emulated/0/Music
System.IOUtils.TPath.GetSharedCameraPath=/storage/emulated/0/DCIM
System.IOUtils.TPath.GetSharedPicturesPath=/storage/emulated/0/Pictures
System.IOUtils.TPath.GetSharedRingtonesPath=/storage/emulated/0/Ringtones
Xperia SOL25(Android 4.4.2)
System.IOUtils.TPath.GetLibraryPath=/data/app-lib/<Application ID>-2
System.IOUtils.TPath.GetDocumentsPath=/data/data/<Application ID>/files
System.IOUtils.TPath.GetHomePath=/data/data/<Application ID>/files
System.IOUtils.TPath.GetSharedAlarmsPath=/storage/emulated/0/Alarms
System.IOUtils.TPath.GetPublicPath=/storage/emulated/0/Android/data/<Application ID>/files
System.IOUtils.TPath.GetSharedDocumentsPath=/storage/emulated/0/Android/data/<Application ID>/files
System.IOUtils.TPath.GetDownloadsPath=/storage/emulated/0/Android/data/<Application ID>/files/Download
System.IOUtils.TPath.GetMoviesPath=/storage/emulated/0/Android/data/<Application ID>/files/Movies
System.IOUtils.TPath.GetMusicPath=/storage/emulated/0/Android/data/<Application ID>/files/Music
System.IOUtils.TPath.GetPicturesPath=/storage/emulated/0/Android/data/<Application ID>/files/Pictures
System.IOUtils.TPath.GetRingtonesPath=/storage/emulated/0/Android/data/<Application ID>/files/Ringtones
System.IOUtils.TPath.GetSharedDownloadsPath=/storage/emulated/0/Download
System.IOUtils.TPath.GetSharedMoviesPath=/storage/emulated/0/Movies
System.IOUtils.TPath.GetSharedMusicPath=/storage/emulated/0/Music
System.IOUtils.TPath.GetSharedCameraPath=/storage/emulated/0/DCIM
System.IOUtils.TPath.GetSharedPicturesPath=/storage/emulated/0/Pictures
System.IOUtils.TPath.GetSharedRingtonesPath=/storage/emulated/0/Ringtones