I have some preferences (EditText and ListPreference) and i have to add a date preference in the XML file. is that possible and is it existing in sharedpreferences ?
Thank you for your help.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m pretty sure there is not a date picker for shared preferences, you would most likely have to create your own. You can however store a date into a preference using the
This would store the date into a preference, in your case you could store it into the EditText preference.
Maybe this post would help you?
How to store a Date object in SharedPreferences?
Hope this helps!