title: Restart App after crash programmatically - Android
body: <p>Is there a way for my to program my app to automatically restart itself whenever it crashes? My app is just a simple media rendering App, however it occasionally crashes ( it's supposed to ). Is this at all possible? Thanks. My code looks like this</p>
  
  <pre><code>public void Play(){  if(mp != null) {
               mp.reset();
               mp.release();
               mp = null;
           }
  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>