Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question