Read app settings
Posted: Tue Dec 27, 2022 8:48 pm
I would like to read and write application settings. Is there any ready-made example?
It is enough for me to read this one, the main thing is that the settings file can be manually placed where it can be read from.
I searched on the Internet and it says that the / data / data / folder is used, but access to it requires root rights. The user will not be able to copy the settings file to this folder. I looked at the XML example and didn't understand how to use it. The problem is where it reads the file from. Can anyone give a ready-made example, for example, to read the coordinates for a window? Or save the coordinates for the window.
It is enough for me to read this one, the main thing is that the settings file can be manually placed where it can be read from.
I searched on the Internet and it says that the / data / data / folder is used, but access to it requires root rights. The user will not be able to copy the settings file to this folder. I looked at the XML example and didn't understand how to use it. The problem is where it reads the file from. Can anyone give a ready-made example, for example, to read the coordinates for a window? Or save the coordinates for the window.