I basically have 2 main screens in my app:
- main menu – it contains all the pages of my app and i can navigate too those pages from here.
- main menu item page – this page contains dynamic multi-forms.
When i create multiple forms and fill input in text fields and press save i want to save the data of multiple forms so i can use that somewhere else,
and when i go back to main menu and come again to menu item page i want all the forms and that data to be there in text fields.
my problem is when i go back and come again to menu item page, all multiform are lost and all the data is also lost.
if the form is saved then after navigating to different pages the forms and data should remain on the page.
3
Answers
You can use one of many data storing methods.
The best way is to locally store the data using shared preference
Find the complete example of the above here
Create a model class of form,
on click event of save
it on another screen
OR