The java.util.prefs package provides a way for applications to store and retrieve user and system preference and configuration data.
Questions tagged [preferences]
1531 questions
0
votes
2 answers
android shared preferences implementation
hi i have tried to implement a shared preference and everything i try doesn't seem to work. i'm wanting when someone clicks on an item in a list view it stores data about that selection in a shared prerference. when the app loads up i want it to…

iamlukeyb
- 6,487
- 12
- 29
- 40
0
votes
1 answer
setting cache for preferences list in android
I'm trying to change the background of a preference screen in my app. I was able to add an image by doing this:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
…

user1347945
- 493
- 2
- 7
- 11
0
votes
1 answer
How to navigate back through Android preferences programmaticaly?
I have several preference screens. When user click on preference named log-of - I have to disable and hide some preference screens. Because of disabled preferences I need to go one level up in screen preferences hierarchy.
Looking for valuable…

Kostadin
- 2,499
- 5
- 34
- 58
0
votes
1 answer
Storing user preference from collection of checkboxes
I have a collection of checkboxes of names that a user can select multiple of.
I want to save the users selection for the next time they login.
However, over time some names may get removed while new ones may get added. Added names can remain…

99miles
- 10,942
- 18
- 78
- 123
0
votes
1 answer
Android SharedPreference storing
I have a preferences.xml file that I use to set up preferences that will be used throughout our application. Right now, I just have the preferences.xml file setup to how we want it, I was wondering for each preference that we want to store, do we…

user1314147
- 174
- 1
- 5
- 25
0
votes
3 answers
Android preferences issue
I'm trying to make a preference screen for my android application, but I'm failing completely. I'm following this guide. When I try to install the application, I get this error message, and it won't install the app on my phone:
[2012-04-10 12:54:45…

Loyalar
- 2,131
- 4
- 24
- 44
0
votes
1 answer
How to get rid of collapsable icons in Eclipse?
Does anyone know how to get rid of the [-] icons from Eclipse? I find them to be really distracting but I have no idea how to turn them off from preferences. Thanks!

Sam
- 934
- 2
- 11
- 21
0
votes
1 answer
Opening IOS settings preferences
Im having a problem opening the settings preferences in my IOS iphone app. At the moment im just using a simple button to test and it doesn't seem to be working correctly.
Basically when I click the button I want a specific settings preference page…

Doop
- 3
- 1
- 2
-1
votes
2 answers
android: how to restrict data access to 2g by code?
i want to set the system preference (by code) for just using 2g networks instead of using 3g. so far i haven't found anything that could have helped me. i suppose i need to set it via the ConnectionManager? can anyone point me in the right direction…

xenonite
- 1,671
- 4
- 28
- 43
-1
votes
1 answer
Using Android preferences and dont show a variable to user
I have a sharedPreferences implementation where I store user preferences. When the user clicks "preferences" in menu, I open the standar editor to allow the user to change preferences. This is the code:
@Override
public boolean…

Tibor
- 589
- 2
- 7
- 20
-1
votes
2 answers
Need help to solve Window Opening Problem
I followed the Tutorial in Cocoa Programming For Mac OS X to create a preferences window but am returned with 2 warnings which stop it from working/opening. These are the two warrnings:
alt text http://snapplr.com/snap/varq
alt text…

Joshua
- 15,200
- 21
- 100
- 172
-1
votes
1 answer
Dotnet ef core linq performance query
We are using .NET 7, EF Core, PostgreSQL.
What is the best performance for these two queries?
var details = from courseSection in courseSectionQuerable
join course in courseQuerable on courseSection.CourseId equals course.Id
…

ali hassan
- 9
- 2
-1
votes
1 answer
getting the saved password in android
I am creating an android device in which there ia a login activity. how to check whether a certain id and password is saved in android device earlier and if it is saved then when the user has entered the emailid the password should get automatically…

ekjyot
- 2,247
- 7
- 39
- 63
-1
votes
3 answers
Android: reading Preferences in code
Is there a way to perform an action related to a Preference in a PreferenceActivity? I've been using this:
CheckBoxPreference thing = (CheckBoxPreference) findPreference("thing");
thing.setChecked(true);
The first line runs okay but the second line…

Joel Auterson
- 728
- 1
- 7
- 26
-1
votes
1 answer
Task :capacitor-preferences:compileDebugJavaWithJavac FAILED
Task :capacitor-preferences:compileDebugJavaWithJavac FAILED
....\node_modules@capacitor\preferences\android\src\main\java\com\capacitorjs\plugins\preferences\Preferences.java:3: error: package android.app does not exist
import android.app.Activity;

sumith deepan
- 45
- 3