title: Continue activity after screen orientation change - Android
body: <p>i currently have a class that'll play audio Files, however if i tilt my screen to horizontal or portrait, it just restarts. How can i make my app continue from where it left off after i tilt my screen? Note that i do not want my app to be fixed in the portrait/horizontal position.</p>
  
  <pre><code>Public void Play(){
     AudioRenderer mr = new AudioRenderer();  
      mp = mr.AudioRenderer(filePath);
             }
  
  private class AudioRenderer extends Activity {
  private MediaPlayer AudioRenderer(String filePath) {    
      File location = new File(filePath);
  Uri path = Uri.fromFile(location);
       mp= MediaPlayer.create(this, path);
  
  
  
  }
  return mp}
  </code></pre>
  
  <p>Thanks a  lot!!</p>