How to create a function in which you would pass the settings. For example, we have a MainActivity in it there is a fragment. There is a button by which we go to the dialog fragment of the settings where we fill in some information (how old, birth and the like). How to write a function that would remember all the filled fields and the next time we press this button again, the same settings would remain.
PS There is Activation, Settings fragment (button in the toolbar) and Fragment (always shown in Activiti)