android-preferences Questions
12
Solved
Is there any way to add a button to the bottom of preferences screen and make them work correct when scrolling?
Bicentennial asked 23/4, 2010 at 8:43
6
What is the difference between getDefaultSharedPreferences and getSharedPreferences in Android? Can anyone please explain?
Triserial asked 10/5, 2011 at 6:37
3
Solved
I am trying to make a Settings Activity using a PreferenceActivity. The problem is that the ActionBar won't show up no matter what I do.
I've tried getSupportActionBar, getActionBar, setActionBar....
Crowder asked 12/6, 2015 at 0:34
3
Solved
After following this tutorial to create a screen for preferences, there seems to be a problem with inflating the class 'androidx.preference.PreferenceScreen'. Why is it not found when my preference...
Magnanimity asked 4/12, 2018 at 14:55
7
How to get all keys in SharedPreferences, not the value of the preference just key only?
prefA = getSharedPreferences("MyAttack", MODE_PRIVATE);
prefB= getSharedPreferences("MySkill", MODE_PRIVATE...
Estes asked 28/2, 2014 at 7:57
2
Solved
I was following the instructions on docs to use Android Jetpack preference library, but I am getting the following error
java.lang.RuntimeException: Unable to start activity ComponentInfo{ ... act...
Unnerve asked 25/1, 2019 at 13:57
8
Solved
I'm registering a preference change listener like this (in the onCreate() of my main activity):
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
prefs.registerOnShar...
Tetrahedral asked 30/3, 2010 at 4:55
1
Solved
I'm doing the settings activity for my app via code since the xml editor wont find any preferences but PreferenceScreen. Via code everything is working but I can not find the RingtonePreferences fr...
Dao asked 12/1, 2019 at 11:48
5
Solved
Is possible to hide a preference in a PreferenceScreen? I don't need to disable it, it must be invisible (sometimes)
Important: I need to keep the min API level 7+
Corrugate asked 3/11, 2011 at 8:19
2
first question. long time searcher.
i implemented a timePicker preference through expansion of DialogPreference as in the android docs. all works well and i can set the summary through onSharedPre...
Spondaic asked 15/3, 2014 at 16:20
1
Solved
I'd like to subclass Preference to create a custom preference item in Kotlin. I am unable to get the custom preference to inflate in the Preference screen. If I remove this custom preference from m...
Sink asked 18/12, 2018 at 13:55
5
Solved
I am trying to implement preferences with sub-screens using AppCompatActivity and support.v7.preference
According to the docs, every PreferenceScreen within another PreferenceScreen functions as a...
Hermia asked 10/1, 2016 at 3:27
1
Solved
I've migrated to androidx.* libraries and one of them is the new preferences library:
androidx.preference:preference:1.1.0-alpha01 - the latest version of it.
As said in release notes iconSpaceRes...
Saying asked 23/11, 2018 at 8:53
2
Solved
When testing a android.preference.PreferenceActivity, I get the following warning:
warning: [deprecation] getFragmentManager() in Activity has been deprecated
That is how I obtain a handle to ...
Andros asked 31/10, 2018 at 7:45
4
Solved
I want to detect when a Preference contained in a ListView gets clicked, so that I can launch an intent to manage that selection.
I would have done like this in my layout XML file:
<Preference a...
Xenophobe asked 30/6, 2012 at 8:54
5
Solved
In my preferences.xml I have a preference element like this:
<Preference android:title="About" />
I want to assign onClick event, so if user would click on it, I would be able to do open n...
Martines asked 16/3, 2011 at 19:27
0
With Android x the DialogPreference is moved to DialogPreferenceCompat . As there are many ways to make a custom layout in the Preference settings .
I am looking for more clean and better way to ...
Georganngeorge asked 21/10, 2018 at 7:40
2
Using
latest V14 Preference Support Library.
Translucent Theme on API > 19
EditTextPreferenceCompat inside PreferenceFragmentCompat
Problem
Tapping on EditTextPreferenceCompat is followed by p...
Disembarrass asked 2/12, 2016 at 8:59
2
I have a big problem with the SharedPreferences in Android. The preferences are adding unwanted chars to one of my string values once the application is closed. Actually it is a configurable escape...
Chiromancy asked 26/12, 2015 at 13:57
5
I have an SettingsActivity extending AppCompatPreferenceActivity.
my pref_headers.xml looks like this:
<preference-headers xmlns:android="http://schemas.android.com/apk/res/android">
<h...
Kareenkarel asked 30/7, 2018 at 14:21
2
I have the following preferences in my preferences.xml:
<SwitchPreference
android:summary="Lorum ipsum dolor sit amet"
android:title="Frobulate" />
<SeekBarPreference android:title="Mar...
Forras asked 5/7, 2018 at 14:56
5
Solved
When I attempt to follow Android's Developer guides and tutorials for creating a Settings Activity using Preferences, I receive warnings such as:
"The method addPreferencesFromResource(int) from t...
Wrest asked 7/2, 2013 at 16:49
4
Solved
I have CheckBoxPreference and 2 others: one is Edit Test Pref. and another is ListBox Pref. How I can enable list box pref and disable edit text pref. when CheckBoxPreference is turned on?
Madancy asked 13/10, 2011 at 8:44
2
Solved
I have a preference screen (responder_generic.xml) as follows:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >
&...
Savina asked 29/3, 2013 at 17:47
3
Solved
I am having a hard time making a Preference with Dialog, none of the methods suggested in the site works for me. So here is what I have first. In MainActivity I have this
@Override
public boolean ...
Newbold asked 18/8, 2014 at 11:24
© 2022 - 2024 — McMap. All rights reserved.