Declare references to the Text fields from the activity in the Java code. Put the values from the fields to the Preferences data structure in Register button handler function.
refactor. Add commit of the preferences editor, so the put values actually get saved in the preferences data structure.