Questions tagged [preference]
445 questions
0
votes
1 answer
DialogPreference textview is dark on android 2.3.5, works on >4.0
I have a strange problem. I want to display license information viewable from the settings in the app. I am using a very simple custom DialogPreference which just hosts a scrollveiw with a textview inside. Everything works fine except that on my…

TutenStain
- 237
- 2
- 6
- 18
0
votes
2 answers
Java library search order
Background / example (but question is probably broader than this):
I'm trying to write a Java application that accesses a Google AppEngine server. To set up the project for this, I followed the steps outlined in the accepted answer here:
Developing…

Markus A.
- 12,349
- 8
- 52
- 116
0
votes
4 answers
When are preferences saved to file?
I have a EditTextPreference and I don't know when that string get saved to the Shared Preferences file.
If I start with a null string, and change it to "Hello", when does this update get saved? Do I have to save it manually?

kampytime
- 3
- 1
- 2
0
votes
1 answer
Custom Preference With Radio Button Issue
Im planning to create app start with splash screen depend on user preference ( final goal, still not add onclick listener to buttons ) , i start step by step to achieve that and its first time to use radio buttons in preference ,
when i run app and…

Android Stack
- 4,314
- 6
- 31
- 49
0
votes
1 answer
List Pref trouble android
I am having trouble working with list pref. I am trying to match a list pref value to another value with if statement
I bet that doesnt make sense so I will post code...
stripedMain:
String stripeType = "";
void drawStriped() {
final…

Romert Ran
- 49
- 7
0
votes
0 answers
Align CheckBoxPreference To Right Android
I want To align the title of check box to right and the box to left because i want to used in Arabic app , How I can Do that ?
…

Abdullah Alhazmy
- 587
- 2
- 7
- 19
0
votes
2 answers
Couldn't save "long" in Shared Preference
I am saving "long" in Sharedpreferences as below :
SharedPreferences preferences = context.getSharedPreferences("STARTTIME", android.content.Context.MODE_PRIVATE);
SharedPreferences.Editor editor = preferences.edit();
…

user1223035
- 241
- 2
- 21
0
votes
1 answer
Preference Headers not showing
I am trying to rewrite my PreferenceActivity to use Preference-Headers I followed the official docs but My Headers are not showing for some reason. I just get a blank screen.
Here's my XML:

mike.b93
- 1,989
- 2
- 18
- 31
0
votes
1 answer
Hide a option from list preference
I have a quite incomplete android project which settings option has a list preference. What i want to do is - permanently hide the character blacklist option from the list, but it will work internally. For this i did

Piyal
- 19
- 2
- 8
0
votes
1 answer
how to calculate age from birth date in shared preference
Hello everyone i'm developing android app that takes the birth date of a baby in a preference screen so the app can save it. but what i need after retrieving the value is to calculate the age to use it in different activities in the same app so what…

user2330447
- 33
- 4
0
votes
1 answer
PreferenceScreen: How can I set setDisplayHomeAsUpEnabled and custom icon?
My current PreferenceActivity displays the HomeAsUp icon in the top left corner (I have not to explain you this left carret ;-)…

Waza_Be
- 39,407
- 49
- 186
- 260
0
votes
1 answer
CheckBoxPreference Default Value
I have a CheckBoxPreference defined as follows:
My…

Jan Tacci
- 3,131
- 16
- 63
- 83
0
votes
1 answer
Preference Background Color Blinking
I managed to change my preference activity's background color, but when I focus/scroll it, it blinks. Please help me solve this. This is how i change my background...
public class ConfigActivity extends PreferenceActivity {
@Override
protected void…

djargonforce
- 259
- 1
- 3
- 8
0
votes
1 answer
Main activity destroyed when launching PreferenceActivity
I Have a very annoying managing activities problem.
I have 2 activities :
1- Main acitivty
2- Preference Activity launched by the main activity.
On PreferenceActivity when i tap "previous" button the application finish instead of returning to the…

Meher
- 143
- 3
- 13
0
votes
3 answers
Android What is Preference.getExtras() used for?
The Preference class has a method called getExtras().
It may or may be not related to the Preference intent, but the Extras can be get and put using the intent directly.
There is no method putExtra/s() in the Preference class, then...
what is the…

ilomambo
- 8,290
- 12
- 57
- 106