Questions tagged [android-preferences]

1916 questions
0
votes
0 answers

How to enable all input methods is AOSP?

I found Preference fragment (com.android.settings.inputmethod.InputMethodAndSubtypeEnabler.java https://github.com/android/platform_packages_apps_settings/blob/master/src/com/android/settings/inputmethod/InputMethodAndSubtypeEnabler.java), where I…
Pein
  • 1,059
  • 3
  • 10
  • 31
0
votes
1 answer

New activity from default preferences

I have setup my default android Preferences with the necessary options. The prime reason of the Preferences are to allow users to manage their resources. In the context of my app, they are "Contacts", "Types of projects" and "Currency". The…
Siddharth Lele
  • 27,623
  • 15
  • 98
  • 151
0
votes
3 answers

Set Preferences in android using shared preferences

I trying to build a setting page for a test app. In code, I am using PreferenceActivity class. When I set some setting from settings page, I am able to retrive that value anywhere in the app using following method. SharedPreferences SP; SP =…
impossible
  • 2,380
  • 8
  • 36
  • 60
0
votes
1 answer

Multiple Preferences for single app using AppCompatPreferenceActivity?

I'm making an app that will have a list with multiple devices (let's say that each device is just an IP address string) that the user saved. For each device I need to save some preferences, such as device name that the user sets, if the device is…
Lucas P.
  • 4,282
  • 4
  • 29
  • 50
0
votes
0 answers

Custom Seekbar preference thumb bug

I create a custom SeekBar Preference for my app. And I see it has a bug with thumb when clicking on preference. See picture below:
0
votes
2 answers

Android: Force close when trying to call Preferences.java

Been trying to call Preferences.java class using: Intent settingsActivity = new Intent(getBaseContext(), Preferences.class); startActivity(settingsActivity); I have this in my Manifest.xml (outside the main app class activity):
Lior Iluz
  • 26,213
  • 16
  • 65
  • 114
0
votes
1 answer

Change Notification Color through Preference

In my current Version of my App, I want to implement a Notification System. For that I already created two Preferences:
Daniel Kng
  • 786
  • 1
  • 9
  • 21
0
votes
2 answers

Android how to get specific preference?

I have the following code in my application in res/xml/preferences.xml:
Donal Rafferty
  • 19,707
  • 39
  • 114
  • 191
0
votes
1 answer

Unable to start activity: Invalid float

After an Android Studio and SDK update, I can't run my app on either the emulator or the device. Always get the same error invalid float. MySettingsActivity.java: public class MySettingsActivity extends PreferenceActivity implements…
Michal
  • 3,584
  • 9
  • 47
  • 74
0
votes
1 answer

How to show two items side by side in Android PreferenceScreen

I have two fields that I need to show side by side as shown in the image below in Android PreferenceScreen. How do I go about this?
Supreme Dolphin
  • 2,248
  • 1
  • 14
  • 23
0
votes
1 answer

Prevent PreferenceFragment from writing default preferences to SharedPreferences

Current behavior of PreferenceFragment: Upon first display on screen PreferenceFragment writes to associated SharedPreferences all default values defined in PreferenceScreen XML resource. I tested this couple times and PreferenceFragment as well as…
Dmitry Ratty
  • 425
  • 1
  • 10
  • 13
0
votes
1 answer

Shared preference with session timeout using countdowntimer

I want to using startcountdown timer method to change preference value but its not worked. private void startCountdownTimer(final String judul){ countDownTimer = new CountDownTimer(120000, 1000) { public void onTick(long…
0
votes
3 answers

Android PreferenceFragment title text color

I'm using a AppCompatPreferenceActivity that uses a PreferenceActivity simplified UI for phones (no fragments), but a two-pane UI with PreferenceFragment when it's a tablet. Until now, I used only a light theme (my theme's parent is…
Stéphane
  • 1,518
  • 1
  • 18
  • 31
0
votes
1 answer

Android Preferences to Layout

How to use this code Preferences.xml
0
votes
1 answer

PreferenceFragment not being inflated, what to do?

I have an AppCompatActivity and a PreferenceFragment, but on onCreate of de AppCompatActivity the PreferenceFragment is not inflated. The code and the error: I don't know if I need to import something different or get another library or use…
Eduardo Bonfa
  • 290
  • 1
  • 4
  • 15
1 2 3
99
100