Search code examples
androiddelphifiremonkey

How do I save data to Internal Storage\Android\data\com.myappname for a android FMX app?


I would like to save if the user enabled dark mode for the application so it can be re-loaded when the app is opened again.

This is something that should be saved in the applications android data folder. What's the best way I could do that?


Solution

  • You should use the

    TPath.GetDocumentsPath

    to get the location, and then you could use

    TIniFile

    to load/save the information.