I
I
Ivan Pushkarev2017-04-03 01:42:39
Android
Ivan Pushkarev, 2017-04-03 01:42:39

How to save RatingBar?

Hello everyone, this is the problem I can’t save the RatingBar rating, when I make a rating, everything is fine, but you just have to exit the application, then you have to evaluate again, if anyone knows how to make the rating saved, please write

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Vashchenko, 2017-04-03
@data302

Well, the rating bar only works within the lifetime of an activity or a fragment. From this, you can only take the value from both editText and that's it. You will have to save manually. There are several options:
If this is 1 screen, you can use preferences. If this is a large number of screens, then you can use a local database. Well, or the way the back stores information, send an assessment to the API and receive activation at the start.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question