0
I’m trying to implement a Notification
daily. The time of this Notification
is chosen by the user through a TimePicker
that appears when clicking on a LinearLayout
consisting of 2 TextViews
where one of them shows the time the user has chosen. All this is already implemented smoothly. My problem is when I leave the app, the chosen time is lost.
The only solution I see is to store this data in the database and when I go back in, go read what I have saved. Is there any other way to do this without having to resort to a database?
A possible and perhaps most appropriate form for this case will be to use Sharedpreferences. Look at this reply for an example.
– ramaral
@Thank you, I’ll investigate.
– porthfind
@ramaral, if you want to answer, q I accept the answer. It worked! :)
– porthfind
No need. However, if the answer I gave you was helpful, you can vote for it, if you like.
– ramaral