PreferenceActivity in Android is a base class for an activity to show a hierarchy of preferences to the user
Questions tagged [preferenceactivity]
680 questions
7
votes
2 answers
EditTextPreference causes Inflate Exception
After about 1h looking for solutions to my problem in related topics, I decided to expose my case. Here it is: I'm having an InflateException everytime I try to open my PreferenceActivity.
Log
E/AndroidRuntime: FATAL EXCEPTION: main
…

Marco Castanho
- 395
- 1
- 7
- 24
7
votes
1 answer
How to reference or "find" a PreferenceActivity?
I have legacy code which extends PreferenceActivity with a subclass called "Preferences". The PreferenceActivity is invoked as follows:
Intent intent = new Intent(this, Preferences.class);
this.startActivity(intent);
The…

Electro-Bunny
- 1,380
- 2
- 12
- 33
7
votes
1 answer
Is it possible to customize preference-header layout?
I have found similar questions, but can't find a specific answer that is up-to-date.
I'm using , as per 3.0+ settings design guidelines ( I target 4.1.2+) to build my headers; I want to set a custom layout to these headers. Note…

devrocca
- 2,497
- 2
- 19
- 27
7
votes
1 answer
Android nested PreferenceScreen with ActionBar
I've got in my Android App a SettingsActivity. Originally there was no Actionbar, so I implemted this:
settings_toolbar.xml

Tobi
- 1,440
- 1
- 13
- 26
7
votes
1 answer
How to set a Content Description on an Android Preference view
Is there a way to gain add a Content Description to the View representing a Preference in a PreferenceFragment or PreferenceActivity?
Basically I need a way to obtain a handle on the View representing the preference. This would allow me to…

cargo8
- 236
- 1
- 5
7
votes
6 answers
PreferenceFragment with transparent background?
I have created a PreferenceFragment with two categories and one checkbox, however, when I display it in my app, the background appears to be transparent.
I can see the main activities, fields and the PreferenceFragment ones are laid over top of the…

user2573690
- 5,493
- 9
- 43
- 61
7
votes
1 answer
How to wrap DrawerLayout around PreferenceActivity in an Android app?
I am writing an Android app to take advantage of Drawer Layout functionality. I want to have an ability to use Drawer Layout as a navigational tool available throughout the app. To use the Drawer Layout, I am using the following in my activity…

CocoaAficionado
- 189
- 1
- 8
7
votes
1 answer
How to load the same screen preference in the detail PreferenceFragment
I am trying to do something like the settings preferences in android for tablet.
When I click the "More" the the "Wireless & Networks" preferences screen is displayed on the right fragment, than if I touch the "VPN" , in the same fragment the…

Lukap
- 31,523
- 64
- 157
- 244
7
votes
1 answer
Create layout preference programmatically
I need help with preferences. I need to create them programmatically. I have this preference screen:

Jovan
- 1,741
- 4
- 19
- 38
7
votes
3 answers
Android PreferenceScreen "color picker" implementation
can someone help me? I need implement some color picker to preference screen (live wallpaper settings). Is there any solution out there, some open source?

Michal
- 3,584
- 9
- 47
- 74
7
votes
5 answers
How to apply theme to elements of a
I have an activity that extends PreferenceActivity.
My theme : android:theme="@android:style/Theme.Light.NoTitleBar.Fullscreen" is applied to the application level in the Manifest file.
Everything is getting the desired theme except the…

Vikas Singh
- 1,781
- 7
- 27
- 54
6
votes
1 answer
Android update language in preference activity
In my android app i have a preference activity which let's the user override the app's language. To achieve this I call this function in every activity's onResume() and then reset the content view:
public static void…

Oliver
- 1,530
- 1
- 12
- 9
6
votes
1 answer
Open WebView not browser from preferenceScreen Android
From my PreferenceScreen I want to open links in WebView not browser. Any ideas?
Here is part of my xml:

taraloca
- 9,077
- 9
- 44
- 77
6
votes
1 answer
Set Intent-flags for PreferenceScreen in xml
My PreferencesActivity's view is populated through XML and in that XML I included a PreferencesScreen to navigate to the system's sync-preferences.
It works fine using the code below.
My problem/question is, that when I opened the Sync-Preferences,…

dst
- 1,770
- 13
- 26