0

I have my code set up to when user finishes watching reward ad video, text view updates to "points : 01" . I would like this to update one point each time a video is watched for example "points : 02" etc. I have tried to just add a second .setText line but does not work . My impressions are set to 2 impressions per user every 24 hours

here is the part of code I would like to add incrementing points to

@Override
public void onRewarded(RewardItem rewardItem) {

    mText.setText("Points : 01");

}
Carlos Craig
  • 149
  • 1
  • 14

1 Answers1

0
 private void addPoints(int points) {
    pointCount +=  points;

// save points to SharedPrefs
    savePoints(pointCount);

    mText.setText("Points: " + pointCount);
}
Carlos Craig
  • 149
  • 1
  • 14