Here I didn't mean the rating of the app that will pop up to rate the app in play store. I am talking about the in app rating system that will pop up whenever an user got his/her items successfully. If user already gave rating then this pop up should not open if user already give rating. I am creating a food delivery app as well as lucky days app in which after a lucky day cross then one feedback activity open where user can give feedback. Here I can't control how to stop pop up feedback activity if user already provide rates. Should I use shared preferences...? if yes then how to use it I mean what to store it and how to clear the data for next lucky days feedback.
Asked
Active
Viewed 23 times
1 Answers
0
Simple Answer
Should I use shared preferences...?
Yes
if yes then how to use it
store date and rate both and compare saved dates with current date if it's not same then clear rate data and now it's ready for new date.
Pratik Fagadiya
- 713
- 4
- 13
-
I am new to android. If you don't mind can you provide me some links or tutorial or any kind of code snippet if possible. – codingchef Jan 08 '22 at 07:16
-
this link helps you to compare two dates https://stackoverflow.com/a/24135723/12833551 – Pratik Fagadiya Jan 08 '22 at 07:18
-
if both date are same then check rate given or not – Pratik Fagadiya Jan 08 '22 at 07:19