android-preferences Questions

4

Solved

I saw in a lot of places that it's a problem to copy the SharedPreferences file to the sd card because every manufacturer place it somewhere else. I want to backup on the sd card no matter where i...
Slr asked 2/6, 2012 at 17:30

2

Solved

A set of questions about SharedPreferences that I was looking for: What, Why, When? How does it work inside? The Best Practice to use it? Only some of those question were answered here. That's ...
Rogatory asked 16/3, 2014 at 13:22

5

Is it possible to create an individual preference in an PreferenceScreen? I would like to code color settings like that: I know that choosing the color is easy realizable with the ListPreferen...
Telespectroscope asked 19/4, 2013 at 15:51

1

In my app using support library v7 I want to add a preference screen. Since Google provides absolutely no documentation on that subject I have looked up a post found elsewhere here on Stack Overflo...

2

I'm trying to open programatically a ListPreference, which exist inside PreferenceCategory. The XML structure is something like: <PreferenceScreen android:key="pref_screen" > <Prefere...
Labiovelar asked 1/10, 2012 at 10:29

1

Solved

I am working on adding ripple effect when the preference is touched (selected). I have customized my preference by extending the ListPreference. I have tried to set the ripple effect programmatical...

4

I'm using listpreference in my android app and getting my key values and all is well and works good (now that you guys have helped me) BUT - when my listpreference menus popup, they only contain a ...
Statfarad asked 25/3, 2010 at 22:55

1

Solved

I'm trying to use the new Preference v14 Support library. To give the preferences a material style, I use the following style on my Activity: <style name="PreferenceTheme" parent="@style/Theme....

1

Solved

A few days ago Google introduced the Preference Support Library (Link). I've just tried to implement it in my application though it seems like it's not working with SwitchPreferences which is weird...

4

Solved

I'm using a theme to customize the look and feel of a settings dialog. The preferences are defined in XML and inflated by a PreferenceFragment. The way of attaching the fragment is basically as des...
Revoice asked 27/8, 2013 at 2:58

1

What is the best way to bring Material design to the preferences using AppCompat? I've been reading some questions and the main points seem to be: The official guidelines suggest avoiding Prefere...
Tankage asked 31/12, 2014 at 18:7

3

Solved

I am new to Android and I am kind of stuck for 6 hours straight. The problem is I don't know the name of the preferences file, and I need to get values from preferences file. I am using Android St...

1

Solved

When running "Analyze/Inspect Code" in Android Studio 1.2.2 with the default settings on below code: public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedIn...
Zebulen asked 14/7, 2015 at 10:38

1

Solved

I keep seeing the tutorial on adding your own seekbar preference, but its not in my actual prefs.xml. Is there any way to have one in my main prefs screen or will I have to separate it.
Menorah asked 26/1, 2012 at 0:6

4

Solved

I have prepared a simple test project for my question at GitHub. In my project there is a custom inline SeekBarPreference, which mostly works fine (its summary is updated when seekbar is being dra...

2

Solved

As I was following an old tutorial (Créez des applications pour Android -> openclassroom) I got stuck on this deprecated method addPreferencesFromResource(int id) from the PreferenceActivity class....

3

Solved

how to get list of all application preferences for application, 1. I am saving shared preference in this manner 2. I know that they are in data/data/app_packagename/shared_prefs 3. THE PROBL...

5

Solved

I'm using CheckboxPreference in a PreferenceActivity and an AppCompat theme from the v21 support library. As you already know, with this latest library widgets like checkboxes, editTexts, radio but...

3

Solved

I am getting error when i try to compile my project: "The method add(int, Fragment) in the type FragmentTransaction is not applicable for the arguments (int, FragmentPreferences)". As far as i kn...
Dysphagia asked 25/2, 2013 at 22:47

3

I am now creating a preference page for my app After API-14, switchpreference is available. and i would like to use it to replace checkboxpreference on API14+ devices It is easy to use res/xml an...
Heinrich asked 24/8, 2013 at 2:18

5

Solved

I have a couple of custom DialogPreference implementations floating around, such as this one: package apt.tutorial; import android.content.Context; import android.content.res.TypedArray; import a...
Currey asked 22/4, 2011 at 15:30

1

I want to open some preferences (which are made by extending DialogPreference) on first app startup. Also, these preferences are used as usual preferences. Is there a way of accomplishing this? E...
Remnant asked 21/6, 2012 at 16:24

2

In my app I have a PreferenceScreen which looks like this: <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" > <CheckBoxPreference android:key="state" androi...
Splotch asked 27/3, 2014 at 14:35

1

Solved

I have a ListPreference: <ListPreference android:entries="@array/frequencies" android:entryValues="@array/frequencies_values" android:key="pref_key_frequencies" android:summary="@string/f...
Idolist asked 13/3, 2015 at 23:14

1

My app has custom preference with custom layout and after trying my app on android 5, I noticed that my custom preferences look different (font size, color, padding) than the others. So I thought i...
Crimp asked 22/11, 2014 at 12:20

© 2022 - 2024 — McMap. All rights reserved.