Where is installed an app created with LAMW? lazarus / 43-Android ---------------------------------------------------------------------- Bandy · 2025-07-28 10:03 Hello, guys. An app created with LAMW in what folder is installed and how can I view that folder? ---------------------------------------------------------------------- Bandy · 2025-07-30 18:11 Somebody... can help? ---------------------------------------------------------------------- lainz · 2025-07-30 20:14 Hi, any android application is installed in data > data, and no, you can't view that folder, except if you have your phone rooted, that's a bad idea. ---------------------------------------------------------------------- dseligo · 2025-07-30 23:09 As lainz said, you can't view that directory. But you have 'GetEnvironmentDirectoryPath' function, so you can get path where your app, data, etc. is located: 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 function jForm.GetEnvironmentDirectoryPath(_directory: TEnvDirectory): string; Here is your TEnvDirectory type: 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,                    dirDocuments); //warning: if Device Api < 19 then return dirDownloads! ---------------------------------------------------------------------- Bandy · 2025-08-01 11:22 I don't have any data folder (data > data) in internal storage. In Internal Storage I have the following folders: .aptoide, .face, Android, DCIM, Documents, Download, FileManager, Movies, Music, Notifications, Pictures, Recordings, Samsung. I have Samsung Galaxy A32 5G smartphone with Android 13. Please explain more. ---------------------------------------------------------------------- dseligo · 2025-08-01 11:31 Quote from: Bandy on August 01, 2025, 01:22:23 pmI don't have any data folder (data > data) in internal storage. In Internal Storage I have the following folders: .aptoide, .face, Android, DCIM, Documents, Download, FileManager, Movies, Music, Notifications, Pictures, Recordings, Samsung. I have Samsung Galaxy A32 5G smartphone with Android 13. Please explain more. Did you try 'GetEnvironmentDirectoryPath' function? You can also try 'GetFilePath' function. Put a button on your form, and in OnClick event just put: 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 ShowMessage(GetFilePath(fpathApp)); ---------------------------------------------------------------------- Bandy · 2025-08-01 13:33 I tried ShowMessage(GetFilePath(fpathApp)); and the message is displayed to fast (for 2-3 seconds) and is to long to be displayed in full, but the path starts with /data/app/xxxxxxxxx. It means Internal Storage/data/app/xxxxxxxxx? xxxxxxxxx means the rest of the message. ---------------------------------------------------------------------- dseligo · 2025-08-01 21:05 Put EditText on a form and change code to something like this: 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 EditText1.Text := GetFilePath(fpathApp); ---------------------------------------------------------------------- Bandy · 2025-08-03 10:39 I put EditText1 on the form and use the code EditText1.Text := GetFilePath(fpathApp);. The path showed is /data/app/~~iK1z_o5BdMZWUNvhxzs7VA==/org.lamw.prognoza- zrId-2nkukEyuNRrcAoMZg==/base.apk 1. This path is on Internal Storage, I mean on Internal Storage/data/app/~~iK1z_o5BdMZWUNvhxzs7VA==/org.lamw.prognoza- zrId-2nkukEyuNRrcAoMZg==/base.apk? In this folder my app is installed? 2. I need to create manually (not by code) a *.txt file in the folder where my app is installed to debug my app. How can I do it? With root? Where can I find info on how to root my smartphone? Please guys... ---------------------------------------------------------------------- dseligo · 2025-08-03 17:13 Quote from: Bandy on August 03, 2025, 12:39:24 pm2. I need to create manually (not by code) a *.txt file in the folder where my app is installed to debug my app. How can I do it? With root? Where can I find info on how to root my smartphone? You don't need to root your phone for that. I do it like this (this is mostly from my app, but I changed it a little bit because variables are in my local language and I have them in object, so this is simplified): 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 procedure Log(const ATekst: String);var sLogFile: String;    f: Textfile;begin  sLogFile := GetFilePath(fpathData) + '/mylog.txt';  AssignFile(f, sLogFile);  If not FileExists(sLogFile) then    Rewrite(f)  else    Append(f);  WriteLn(f, FormatDateTime('yyyy-mm-dd hh:nn:ss.zzz ', Now) + ATekst)  CloseFile(f);end;...Log('test 1');...Log('test 2: ' + IntToStr(SomeVariableToLog);...// I have some form with EditText set to multiline and across whole form// There I show log like this:procedure TfmMyLogForm.btnShowLogClick(Sender: TObject);var f: Textfile;    sLogFile: String;    s: String;begin  sLogFile := GetFilePath(fpathData) + '/mylog.txt';  edStatus.Text := '';  If not FileExists(sLogFile) then    Exit;   AssignFile(f, sLogFile );  Reset(f);  While not Eof(f) do  begin    ReadLn(f, s);    edStatus.AppendLn(s);  end;  CloseFile(f);end; I hope this is enough to get you started. ---------------------------------------------------------------------- Bandy · 2025-08-04 07:50 Thank you, dseligo. But I insist to help me with root because I need to manually create that file (not by code as you showed me) to SEE what's written in that file and what portions are deleted from that file in order to debug my Android app. I have errors in my app. Once again, please help me guys. ---------------------------------------------------------------------- Seenkao · 2025-08-04 09:39 Quote from: Bandy on August 04, 2025, 09:50:50 amBut I insist to help me with root because I need to manually create that file (not by code as you showed me) to SEE what's written in that file and what portions are deleted from that file in order to debug my Android app. I have errors in my app. Для вывода логов, вам не обязательно получать root-доступ. Вашему приложению должно быть разрешено читать и писать фалы (доступ к файлам). Вам достаточно сохранить лог в той папке, к которой у вас есть доступ. Так же вы можете отлаживать приложения при подключении к компьютеру. LAMW вроде как поддерживает данную отладку (но я не пользовался). Google translate: To output logs, you do not need to get root access. Your application must be allowed to read and write files (file access). You just need to save the log in the folder to which you have access. You can also debug applications when connected to a computer. LAMW seems to support this debugging (but I have not used it). ---------------------------------------------------------------------- GeraldinePointer · 2025-08-16 04:42 very good