Miscellaneous "flattened" helper functions for Android external storage from the Environment class, for Delphi and C++
GetExternalStorageState: string;
isExternalStorageWritable: boolean;
isExternalStorageReadable: boolean;
GetExternalStorageDirectory: string;
GetDataDirectory: string;
GetDownloadCacheDirectory: string;
GetRootDirectory: string;
getStorageState(FilePath : string) : string;
isExternalStorageEmulated : boolean;
isExternalStorageRemovable : boolean;
//this does not work on all flavours of Android
function GetExternalSDCardDirectory: string;
This is the most robust way of getting the SD cards locations
function GetSysSecondaryStorage: string;
function GetSysExternalStorage: string;
For C++ and Delphi add the .pas files to your project, then use "Use Unit" to add Androidapi.IOUtilsEx to your uses clause and in C++, to #include <Androidapi.IOUtilsEx.hpp>
Bookmarks