Shared Prefrences

Description

User has deleted their subject information Flashcards on Shared Prefrences, created by Deleted user on 13/11/2016.
Deleted user
Flashcards by Deleted user, updated more than 1 year ago More Less
Jason Manns
Created by Jason Manns about 8 years ago
Jason Manns
Copied by Jason Manns about 8 years ago
1
0

Resource summary

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", "");
Show full summary Hide full summary

Similar

This smart kitchen app wants to end your meal-planning woes
Andrew Kowalski
ANDROID
Marco Masabanda
Los sistemas operativos
JUAN JOSE GOMEZ PARRA
Android Trainee Question
Samrat_Kumar_Dey
Co-routines
ritesh singh
Guidelines m-learning
PAUL ANDRE ROMERO ALVARADO
Android
glupita28036615
Sistema android
thalia buenaño
Android
giss.93.21
ANDROID
nellyguaman30
sistema operativo linux
David Silva 22