PreferenceActivity in Android is a base class for an activity to show a hierarchy of preferences to the user
Questions tagged [preferenceactivity]
680 questions
-2
votes
2 answers
preference activity UI for settings
I'm beginner in android , now I'm building an android application. .
I'm working in setting screen now and in my research i have seen so many applications that is using preference activity for the settings.So i started my setting page using…

bepositive
- 65
- 2
- 6
-2
votes
1 answer
why sharedpreference commit method doesn't work in my overrided method?
i have a splashscreen activity in my app that checks to find out app first run and show user interface language selecting dialog in first run then try to store it in preferences but my code doesn't work.
i want to save this in a key that exist in my…

Sadiq
- 184
- 11
-2
votes
1 answer
Android is removing my custom PreferenceActivity from the history stack when another activity is launched. how can I stop this?
I have a PreferenceActivity that has a Preference on it. When the preference launches an activity using startActivity, the PreferenceActivity is stopped and removed by the OS.
I would like the user to return to the original PreferenceActivity…

Milk Run
- 17
- 8
-5
votes
3 answers
NullPointerException with SharedPreferences
I am trying to get a textView from my Main.java file, and when the notification is clicked, it should print it. I know I am to use sharedPreferences for that. I did that. However, it keeps throwing a NullPointerException, but I have called…

Aria
- 389
- 3
- 7
- 25
-8
votes
1 answer
How can i make settings activity like this picture below?
Image of activity I want
I have to create this type of Settings activity,custom Switch,multiple Headers . Please help me out.Suggest me perfect solution or some Tutorial. Thank you.

Harsh Dalwadi
- 388
- 7
- 15