Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.




ID: 30158, External storage helper functions for Android

by Ray Vecchio Email: Anonymous


Miscellaneous "flattened" helper functions for Android external storage from the Environment class, for Delphi and C++
Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For RAD Studio, Version 12.0  to 16.0 511 downloads
Copyright: No significant restrictions


Terms of use: Embarcadero Public Beta Test Disclaimer


Size: 4,395 bytes
Updated on Tue, 10 Mar 2015 09:13:07 GMT
Originally uploaded on Thu, 05 Mar 2015 02:41:34 GMT
SHA1 Hash: 8710F6AE36F2C3B23598A7341408D38DE586A1C0
MD5 Hash: EE22FCF31EF146726A1F477E7954C879

    Explore the files in this upload

Description
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>

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC04