You forgot to call commit()
on appdataEditor
=> appdataEditor.commit()
after putting the boolean.
Also keep in mind that due to the activity life-cycle, the OnStart()
is being called again once the activity comes back into the foreground and therefore calling rateDialog()
again, if that is your design, then ignore this part..