How to save data after closing the application

Hello, and sorry for my English. I want that when the user enters their name and then close the application, the name is saved once they enter it again.
Thank you!!

Welcome,

Use a TinyDB to store the name. Search on the communtiy for TinyDB. We have plenty of topics about that component.

2 Likes

Thank you so much Peter!

1 Like

But he’ll need to use when on app stop() method as he wants to store data after closing app… Am I correct?

1 Like

No he wanted the name to be saved if entered once.

Yes!
That’s what I’m looking for!

You can give more details please double that stop () method.

As I understood it, with that method you can generate an event before the app closes.

-Speak spanis :slight_smile:

Just put the block of when app stop in the screen section and put a tiny dB component inside the on stop app and save to whatever tag it is

Hola Antonio, como andas?
Lo que quiero hacer es que el usuario pueda ingresar sus datos personales! por ejemplo: Nombre, edad, fecha de nacimiento. Y que estos queden guardados cuando el usuario cierre la app y vuelva a entrar.
Me explico?

te puede ser útil ver éstos bloques:
El tag o etiqueta es el nombre que tendrá la variable almacenada, por lo que al recuperar el valor tienes que usar ese mismo nombre.

settings