android-preferences
Nested keying in SharedPreferences?
I need to be able to access multiple settings using one key. For example: <EditTextPreference android:key=\"@string/channel_url1\"[详细]
2023-04-01 21:46 分类:问答Get Key, not value, of the ListPreference selection - Possible?
Getting the value of the currently selected item in a ListPreference is straightforward: String selected = sharedPrefs.getString([详细]
2023-04-01 11:56 分类:问答SharedPreferences.getInt() results in ClassCastException - Why?
I ha开发者_如何转开发ve a simple (not user-editable) numerical setting defined in a preferences XML as follows:[详细]
2023-04-01 05:16 分类:问答create a permissions to restrict third party apps calling an activity android
I am having two android apps signed with same certificate. Also i am using the activity of one app in other android app by specifying a name in \"intent-filter\" tag. But because of \"intent-filter\"[详细]
2023-03-28 11:03 分类:问答changing the preference category label color background
I would like to change the color of the preference category bakcgorund. In my xml with preferences I have categories typed in this way:[详细]
2023-03-28 08:26 分类:问答Launch new activity from PreferenceActivity
Good day, friends. I have a PreferenceActivity, it is filled from XML file. When we press one item, we should launch new act开发者_JS百科ivity. How to do it? What should I write in XML-file or in the[详细]
2023-03-28 05:18 分类:问答Android JUnit testing of Preferences
A fairly normal scenario: an Android application has a preferences activity, and selecting an option from a ListPreference triggers code to change that ListPreference\'s summary text. ie: Selecting \"[详细]
2023-03-26 04:57 分类:问答Android: ListPreference hide/disable value
I\'m generating a listPreference dialog based on xml (entries and entryValues). <string-array name=\"listArray\">[详细]
2023-03-25 21:52 分类:问答When would we want a non-persistent Preference?
I\'m trying to wrap my head around persistency when it comes to Android preferences. There\'s an at开发者_如何学Gotribute persistent, which can be either true or false. If true, the preference is comm[详细]
2023-03-24 03:15 分类:问答Error while calling an array resource with item "in"
I am trying to load an array for my list preference. It is for height and so my values are \'in\' for inches and \'cm\' for centimeters. The preference list dialog crashes as soon as I try to open the[详细]
2023-03-22 22:33 分类:问答
加载中,请稍侯......