title: Change TextView and save on SharedPreferences
body: <p>I have a TextView that holds a text and I want to change it on button click and save it on sharedpreferences untill the app is restarted then it goes back to its default text.</p>
  
  <p>here is my code:</p>
  
  <pre><code>TextView questionText = (TextView)findViewById(R.id.perso);
  questionText.setText("Default text");
  Button button = (Button) findViewById(R.id.button1);
  
  button.setOnClickListener(new View.OnClickListener() {
  
          public void onClick(View v) {
              resetConsent();
              questionText.setText("You clicked on the button");
  
  
          }
      });
  </code></pre>