Hello thunkers,
i created this example to show you how you can make a login screen for your app and store some userdata to “TinyDB” the storage of your device.
Its only a demonstration how it works.
You can modify the example how you want it.
Just an apointment: TinyDB has a problem: any user can see what does any TinyDB stores if they have root access to the mobilephone. I’ve made some tests and finally I reached an XML file where TinyDB stores the data, and any user will be able to use it as they want. (I’m not going to share the path to the file for obvious reasons)
So, I recommend to store values in TinyDB with an encrypt method, like AES-128 that uses any key that you want, like 123456 or abcdef or something like that, or use any other encryption method that could be decrypted with a key, not like MD5 or BASE64
Thanks for the hint.
I’ve used “TinyDB” just as an example.
The best method is a database in Firebase or Mysql or similar where strangers have no access.