title: Android - how to open an audio-stream url with an external app?
body: <p>I want to give the user the choice of opening an audio stream url with an audio player that he already have installed.</p>
  
  <p>The following code works as so far that the user getting a list of installed audio apps and can choose between then.</p>
  
  <pre><code>Intent intent = new Intent();
  intent.setAction(Intent.ACTION_VIEW);
  intent.setDataAndType(Uri.parse(stream.getAudio()), "audio/*");
  startActivity(intent);
  </code></pre>
  
  <p>But it will open an intent that lives inside my app only. Therefor the playback will stop if the user closes my app. How can I change the behaviour so that not an new activity is started but the whole app is launched and is detached from my app.</p>