I know how to clear an entire sharedPreference file. But what if I only want to clear one specific entry such as "first_name"? I image there must be a better approach than
mContext.getSharedPreferences(TAG, Context.MODE_PRIVATE).edit().putString(FIRST_NAME, null).apply();
Am I wrong about that?
0 comments:
Post a Comment