Skip to navigation
Get default preferences with android
02.05.22
Context context = getApplicationContext(); SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); Boolean a = prefs.getBoolean("alert", false); String b = prefs.getString("date_format", ""); logme(String.valueOf(a));
Reply
Anonymous
Information Epoch 1753448289
Fold knowledge into data so program logic can be stupid and robust.
Home
Notebook
Contact us