python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How to get preferences from fragment
i am wanna get string from my preferences file to fragment activity. for the other activity i use code like this:
String fcmToken = Preferences.getFcmToken(getBaseContext());
but in the fragm...
ilham
Votes: 0
Answers: 0
SharedPreferences check if data already exist
i have a problem here, i want to make if same data or value already exists in sharedpreferences it show toast if this data already exist, so i must input other value. i try to check it with contains b...
Vin
Votes: 0
Answers: 2
What happens to Sharedpreferences/AndroidKeyStore/AccountManager when user choose to copy apps and data from your old device
When a user grabs a new phone, and has an existing phone and wishes to migrate apps and data to the new phone. What exactly happens with the SharedPreferences/AndroidKeyStore/AndroidAccountManager?
IE...
AlphaStrike
Votes: 0
Answers: 1
Save button background and drawables using SharedPreferences for a for loop
A have a array of buttons which can have a different drawable and background depending if the button has been pressed. My question is: how can I save the drawable and background of each button in a fo...
Cas
Votes: 0
Answers: 0