title: How to change TextView text persistently in Android?
body: <p>I've tried using Thread, but it was unsuccessful, the textView didn't changed after I change the TextView text using EditText as input. Help me, please!</p>
  
  <pre><code>        Thread thread = new Thread(new Runnable() {
          @Override
          public void run() {
              //shared is SharedPreferences object that I define as an instance variable
              String inp = shared.getString("input", def);
  
              textView.setText(inp);
              Log.d("input",inp);
      });
  
      thread.start();
  </code></pre>