title: (Android/Java) Editing EditText's default text?
body: <p>Sorry for my bad English, I speak French. To better understand my problem, you might need to know this:</p>
  
  <p>"nom" means "name"<br>
  "modifier" means "edit"<br>
  "jeux" means "games"<br>
  "jeuxValide" means "valid games"<br>
  "positionJeuchoisis" means "chosen game's position"<br>
  "rechercher" means "to search"<br>
  "ListeJeux" means "game list"  </p>
  
  <p>Enough for the French teaching, here is my problem (I know its not very clear..)</p>
  
  <p>I have an EditText with default text in it (a "nom" (name) the user entered a while back).
  I want the user to be able to edit the text in the editText, without him rewriting everything in it. I want the user to be able to simply edit the EditText's text.</p>
  
  <p>This is the method that return what is inside the editText (it should...):</p>
  
  <pre><code>private String setupNom() {
      EditText editNom = (EditText) findViewById(R.id.editTextNomModifier);
      editNom.setText(RechercherActivity.jeuxValides.get(ListeActivity.positionJeuChoisis).getNom());     
      String nom = editNom.getText().toString();
      return nom + "";
  }
  </code></pre>
  
  <p>This is the "modifier" button, which set an object's parameter to the text inside the editText at the end of the activity.</p>
  
  <pre><code>private void setupModifierButton() {
      Button retourButton = (Button) findViewById(R.id.btnAjouterAjouterModifier);
  
      retourButton.setOnClickListener(new View.OnClickListener() {
          public void onClick(View v) {
  
              for (int i = 0; i &lt; ListeJeux.jeux.size(); i++) {
                  if ((ListeJeux.jeux.get(i).getNom())
                          .equals(RechercherActivity.jeuxValides.get(ListeActivity.positionJeuChoisis).getNom())) {
                      ListeJeux.jeux.get(i).setNom(setupNom());
                  }
              }
  
              ListeJeux.saveListe(ModifierActivity.this);
  
              Log.i("Modifier", "Jeu modifié avec succès");
              Toast.makeText(ModifierActivity.this, "Jeu modifié avec succès!", Toast.LENGTH_LONG).show();
  
              startActivity(new Intent(ModifierActivity.this, MainActivity.class));
          }
      });
  </code></pre>
  
  <p>I want the editText to show the "nom" entered by the user a while back.
  But then, I want the user to be able to edit it.
  Then when I press the "modifier" button, I want this:
  ListeJeux.jeux.get(i).setNom(What is inside the editText at the end)</p>