|
Created by Jason Manns
almost 8 years ago
|
|
|
Copied by Jason Manns
almost 8 years ago
|
|
Question | Answer |
Write the code to save a username using SharedPrefrences. | SharedPrefrences data = this.getSharedPrefrences("package.name", Context.MODE_PRIVATE); data.edit().putString("username", "bob").apply(); // access username String username = data.getString("username", ""); |
Want to create your own Flashcards for free with GoConqr? Learn more.