Skip to content

Instantly share code, notes, and snippets.

@yishai-glide
Created April 18, 2017 19:01
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save yishai-glide/182db2afa4c410fada03be0a4048ce8b to your computer and use it in GitHub Desktop.
public class MainActivity extends ActivityCompat {
/*
* ACTIVITY CODE
*/
public String getStiredValue() {
SharedPreferences prefs = context.getSharedPreferences(PREFS, MODE_PRIVATE);
return prefs.getString(KEY, DEF_VALUE);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment