Back to project page GitHubContributionsApp.
The source code is released under:
GNU General Public License
If you think the Android project GitHubContributionsApp listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.githubcardandroidapp.app.Serialization; /*from ww w.ja v a 2 s. co m*/ import android.content.Context; import android.content.SharedPreferences; import android.preference.PreferenceManager; /** * Created by Muhammad on 6/21/2014. */ public class UserNamePicker { private final String USER_NAME_PREFERENCE_ID = "pref_loginName"; private final String DEFAULT_USERNAME = "msiddiqi"; public String getUserName(Context context) { SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context); String retUserName = sharedPrefs.getString(USER_NAME_PREFERENCE_ID, DEFAULT_USERNAME); return retUserName; } }