Questions tagged as 'sharedpreferences'

0
answers

Error generating Sqlite Query

Good afternoon I'll be sure, I'm trying to make a query using sqlite public ArrayList<CXCPSaldoClienteProveedor> ObtenerClienteZona() { ArrayList<CXCPSaldoClienteProveedor> ArrayClienteZona = new ArrayList<CXCPSa...
asked by 14.07.2016 / 22:42
0
answers

Share data between Android projects

Good afternoon! I have a question-doubt I hope you can help me. They know if there is any way to share variable data to other projects or between different modules that belong to a project. That is, I have my main project and that variable wh...
asked by 22.11.2017 / 06:03
0
answers

shared preferences are deleted when you close and open app XC wtf

When I select the image it saves it well and I can open it in other activitys when I close and open the app and the image does not appear in any activity, the same thing happens to me with audio files that I put in other activites what am I doin...
asked by 14.11.2018 / 19:52
1
answer

How to implement SharedReferences in Android Studio?

Good day, I have a code model using intent in the following way and I want to pass it, I do not know how to use SharedReferences unidades=(EditText)findViewById(R.id.editTextunidades); Intent miinten = new Intent(Calculate.this...
asked by 20.10.2018 / 20:41
0
answers

keep data from a recycler view when exiting and reopening the shared preferences app

Hello, how are your colleagues? My question is how do I keep the session and the data of a recycler view within an activity? I have tried with sharedprefrences and it brings me the data that I store, but not the necessary data for the recycler v...
asked by 20.08.2018 / 17:41
0
answers

Save Location with sharedpreferences - what default value do I have to use?

hi I'm trying to save a location with sharedpreferences but when I want to load it I can not. The problem is in the load in the default value that I put that is null but I do not know that another value put probe with several things but I do...
asked by 03.07.2018 / 04:54
1
answer

Save arraylist with sharedpreference

hi I am with a problem I have an arraylist that has strings in and I want to keep them with sharedpreference the theme is that I can not keep a arraylist then reading by there lei how to do it by transforming the arraylist in a hashset I did it...
asked by 22.05.2018 / 03:17
0
answers

shared preference language Android

I have the problem that when you change the language you only do it in the main activity, when you change to another you return to the default language, I guess I misuse the shared preference because when you start the app you return to the defa...
asked by 20.05.2018 / 22:01
0
answers

Can I use the data saved in shared preferences in any class without extra put?

I have that doubt, because I use many fragments in my app and it would be great for me to store some editext in shared preferences and then use them simply by calling this data from any class, without putting extra.     
asked by 15.05.2018 / 12:07
0
answers

Problem with the use of SharedPreferences with dart and flutter

Hello, I had problems getting data from an instance of SharedPreferences, this is my code: _getToken() async { SharedPreferences prefs = await SharedPreferences.getInstance(); var token = (prefs.getInt('TOKEN') ?? ""); print(toke...
asked by 16.04.2018 / 21:19