package in.iamkelv.balances;

import android.content.Context;
import android.content.SharedPreferences;

public class PreferencesModel {

    private SharedPreferences mSettings;
    private SharedPreferences.Editor mEditor;
    private static final String PREFS_NAME = "BalancesPrefs";

    public PreferencesModel(Context context) {
        this.mSettings = context.getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE);
        this.mEditor = mSettings.edit();
    }

    public void setUsername(String username) {
        mEditor.putString("username", username);
        mEditor.commit();
    }

    public void setPassword(String password) {
        mEditor.putString("password", password);
        mEditor.commit();
    }

}

@@ -457,32 +457,849 @@
 .edit();%0A    %7D%0A%0A
+    public boolean getSetupState() %7B%0A        Boolean setupState = mSettings.getBoolean(%22setup_state%22, false);%0A        return setupState;%0A    %7D%0A%0A    public boolean getAuthState() %7B%0A        Boolean authState = mSettings.getBoolean(%22auth_state%22, true);%0A        return authState;%0A    %7D%0A%0A    public String getUsername() %7B%0A        String username = mSettings.getString(%22username%22, %22%22);%0A        return username;%0A    %7D%0A%0A    public String getPassword() %7B%0A        String password = mSettings.getString(%22password%22, %22%22);%0A        return password;%0A    %7D%0A%0A    public void setSetupState(Boolean setupState) %7B%0A        mEditor.putBoolean(%22setup_state%22, setupState);%0A        mEditor.commit();%0A    %7D%0A%0A    public void setAuthState(Boolean authState) %7B%0A        mEditor.putBoolean(%22auth_state%22, authState);%0A        mEditor.commit();%0A    %7D%0A%0A
     public void 

Update PreferencesModel.java