title: How to save user input in dialogue box?
body: <p>I am basically trying to create a dialogue box that takes user input text as a "Note" and it saves the note and shows the note the next time the dialogue box is opened, then the user can add on to the note or take away from the note and save it again. Thank you very much in advance. </p>
  
  <p>Here's what I have so far: </p>
  
  <pre><code>AlertDialog.Builder alert = new AlertDialog.Builder(ViewTask.this);
  alert.setTitle("Task Note");
  alert.setMessage("Please enter your note");
  
  // Set an EditText view to get user input 
  final EditText input = new EditText(ViewTask.this);
  alert.setView(input);
  alert.setPositiveButton("Save", new DialogInterface.OnClickListener() {
      public void onClick(DialogInterface dialog, int whichButton) {
          String value = input.getText().toString();
          //String usernote = value;
      }
  });
  alert.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
      public void onClick(DialogInterface dialog, int whichButton) {
      }
  });
  alert.setCancelable(false);
  alert.show();
  break;
  </code></pre>