Questions tagged [preference]

445 questions
-1
votes
1 answer

How to add a preference programmatically from normal activity in Android?

I need to add a preference from an activity witch does not extend PreferenceActivity, i tried this: PreferenceCategory targetCategory = (PreferenceCategory)findPreference("kurse"); EditTextPreference neuerKursEintrag = new…
Simon
  • 1
  • 1
-1
votes
1 answer

Android execute method when ListPreference is selected

how can I execute a method as soon as a user selects an option in a ListPreference?
Broadwell
  • 1,343
  • 2
  • 19
  • 33
-1
votes
2 answers

How to save String values in spinner with sharedpreference

How to save and load String values ​​in spinner with sharedpreference 1. can not store the value 2. can not load value array Greece United Kingdom Italy
-1
votes
1 answer

Android Preference Screen to look like device admin

i want to achieve the theme of the device admin in my preference screen, see image below to show what I mean. https://i.stack.imgur.com/TZHnF.png i have followed the example in sdk but ended up with something like…
Rowel
  • 434
  • 1
  • 4
  • 9
-1
votes
1 answer

onClickListener in PreferenceActivity

I have this onClickListener in onCreate method of my PreferenceActivity, but it gives me error. Here is the PrefereceActivity: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); …
Rohit Malish
  • 3,209
  • 12
  • 49
  • 67
-1
votes
1 answer

Android Preference Textview Multiline?

How can i use a Textview (Multiline) at a PreferenceActivity? I found a sample at the app "K-9 Mail". There the preference "signature" is using a textview with multiline.
-2
votes
1 answer

permanent change via inspect element, ways to make browsers remember my appearance preference?

Have you seen the smiley jobs guy at the right of the LinkedIn website? I want him go away! (https://static-exp1.licdn.com/scds/common/u/images/promo/ads/li_evergreen_jobs_ad_300x250_v1.jpg) so, I open inspect element on it, add display: none; to…
-2
votes
1 answer

Software to optimise people's preferences

Say I have two colours of lollipops, and five lollipops of each colour (so ten in total), and I want to distribute these among my friends. We each submit some ranked preferences: Ben: 1 - Orange, 2 - Green, 3 - Red Joe: 1 - Green, 2 - Blue, 3 -…
Jack Nagy
  • 3
  • 1
  • 5
-3
votes
1 answer

Ranking preference of each item in a list

I've been away from Python for awhile, please forgive the broad/basic question. Let's say I have a list of items, which can be anything really. I want to write a program that prints two of these at a time, in every possible combination of two, and…
yaxx0r
  • 149
  • 3
  • 15
-3
votes
1 answer

put item of listView in preference activity

I have a list view , and I would like to implement a button for each item that if crushed makes visible that item in another activity ( preferenceActivity ) . What should I go and see to achieve this? There are guides ? thanks for the answers !
gilione
  • 59
  • 1
  • 9
1 2 3
29
30