For a program I really need your help.
I found a cross platform Delphi script to save and load INI files on devices, which was made for an earlier Delphi version.
Now, here's my problem: It works perfectly fine on my Windows computer, but won't work on Android. The main problem is that it doesn't know the unit reference on Line 61 (FMX.Inifiles.Android) and, missing this unit, it can't proceed.
Any ideas how I could fix that?
You can use the
IniFilesunit. I have used it on android, windows and linux and it seems to work fine. For the file path on android you would use something like:System.IOUtils.TPath.GetDocumentsPath + System.SysUtils.PathDelim + 'config.ini'Code example on saving ini on adnroid:
Example on loading a string:
When loading what ever you set as the value will be returned if that Name/Key does not exist.