Skip to content

Instantly share code, notes, and snippets.

@meet30997
Created September 6, 2022 05:57
Show Gist options
  • Save meet30997/49dc6f593aad79bea86c8e55b6c0ff28 to your computer and use it in GitHub Desktop.
Save meet30997/49dc6f593aad79bea86c8e55b6c0ff28 to your computer and use it in GitHub Desktop.
SharedPref
this.getSharedPreferences("MySharedPref", Context.MODE_PRIVATE).edit()
.putString("MySharedPrefUserName", "Meet").apply()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment