[Solved] How to save and update points in a share preferences


You need to convert the int to String using

pointsAvailable.setText("C"+String.valueOf(pointsAmount));

And to save the points, you need to store them in the SharedPreferences in onRewarded:

saveCoins.edit().putInt("C",pointsAmount).commit()

solved How to save and update points in a share preferences