title: rotation cell stops media player android
body: <p>My code plays a song from a listview, everything perfect, BUT, if I specifically rotate it, the media player stop, how can i keep it playing?
  and! if i create an another button to pause, or something like that, should I use the same answer?
  my code in a button:</p>
  
  <pre><code>testme.setOnClickListener(new Button.OnClickListener() {
              public void onClick(View v) {
                  if(nombre.matches("Kaminomi")) { //ignore this
                      try {
                          mp.setDataSource(nombreSong);
                          mp.prepare();
                      } catch (IOException e) {
                          e.printStackTrace();
                      }
                      if (validar == false) {
                          validar = true;
                          mp.start();
                          Toast.makeText(getApplicationContext(), "Reproduciendo ahora: \n" + nombreSong, Toast.LENGTH_LONG).show();
                          testme.setText("Stop :D");
                          testme.setCompoundDrawablesWithIntrinsicBounds(R.drawable.nisekoi1,0,0,0);
                      } else {
                          validar = false;
                          Toast.makeText(getApplicationContext(), "Deteniendo: \n" + nombreSong, Toast.LENGTH_LONG).show();
                          mp.stop();
  
                          testme.setText("Play :D");
                      }
                  }else{
                       Toast.makeText(getApplicationContext(), "Algo mas creo", Toast.LENGTH_LONG).show(); //ignore this too
                  }
  }
  </code></pre>