code: @Override
    protected void onStop()
    {
      super.onStop();
      //Bundling user input data
      String name = nameField.getText().toString();
      String email = emailField.getText().toString();
      String birthdate = birthdateField.getText().toString();
      int gender = genderRadio.getCheckedRadioButtonId();
  
      SharedPreferences settings = getSharedPreferences( PREF_TAG, 0 );
      SharedPreferences.Editor editor = settings.edit();
  
      if( name != null )
        editor.putString( Defaults.NAME_PROPERTY, name );
  
      if( email != null )
        editor.putString( BackendlessUser.EMAIL_KEY, email );
  
      if( birthdate != null )
        editor.putString( Defaults.BIRTH_DATE_PROPERTY, birthdate );
  
      if( gender != 0 )
        editor.putInt( Defaults.GENDER_PROPERTY, gender );
  
      editor.commit();
    }
docs: Lifecycle section