Access External Storage With These Helper Functions For Delphi XE7 Firemonkey On Android

Delphi XE7 Firemonkey External Storage Helper Functions AndroidDeveloper Ray Vecchio has released some helper functions which makes accessing the external storage on Android in Delphi XE7 Firemonkey a bit easier. The unit is called Androidapi.IOUtilsEx.pas but it also comes with Androidapi.JNI.EnvIntf.pas and Androidapi.JNI.SystemIntf.pas. As you may know most Android devices usually have an internal storage and then an external removable storage (like a microSD card). Some of the functions available in the helper library are GetExternalStorageState, isExternalStorageWritable, isExternalStorageReadable, isExternalStorageEmulated, isExternalStorageRemovable, and getStorageState() for finding out the state of the external storage. It also has some functions for getting directory locations like GetExternalStorageDirectory, GetDataDirectory, GetDownloadCacheDirectory, and GetRootDirectory. Apparently the most robust way to get access to the external storage location is through these two functions GetSysSecondaryStorage and GetSysExternalStorage. This helper unit should also work in Appmethod.

Head over and download the full helper unit for accessing external storage on Android in Delphi XE7 Firemonkey.

Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

Access External Storage With These Helper Functions For Delphi XE7 Firemonkey On Android by Delphi XE5 XE6 XE7 XE8 10 Seattle Berlin Firemonkey, Delphi Android, Delphi IOS is licensed under a Creative Commons Attribution 4.0 International License.

Leave a Reply

Show Buttons
Hide Buttons
Read previous post:
Delphi XE7 Firemonkey Zip For Android Library Zip4J
Zip And Zip64 Archive Component Wrapper For Delphi XE7 Firemonkey On Android

Developer Erik Salaj from Winsoft.sk has created a wrapper component for the Zip4J file compression library to handle ZIP files...

Close