How to get path to shared documents folder or main storage folder? lazarus / 43-Android ---------------------------------------------------------------------- Atak_Snajpera · 2021-11-28 12:07 My applications has to store some gps coordinates in plain txt file. Those files must be easily accessible by user so I was thinking about Documents folder. Unfortunately  TEnvDirectory for function GetEnvironmentDirectoryPath does not have dirDocuments or dirSharedDocuments! I could always use hardcoded path like /storage/emulated/0/Documents/ but that might not be the best idea for future. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i TEnvDirectory = (dirDownloads,                    dirDCIM,                  dirMusic,                    dirPictures,                    dirNotifications,                    dirMovies,                    dirPodcasts,                    dirRingtones,                    dirSdCard,                    dirInternalAppStorage,                  dirDatabase,                    dirSharedPrefs,                    dirCache); ---------------------------------------------------------------------- jmpessoa · 2021-11-28 16:46 QuoteUnfortunately  TEnvDirectory for function GetEnvironmentDirectoryPath does not have dirDocuments... Yes, Unfortunately the android "Documents" folder need API > 19 .... but, as side note, there is an increasing android restriction for your application to actually have access to these "public" folders.... What about "jPreference" component  (Extra Tab)?