Launch app or file with android app
<p>How can i launch a process from with my android app? I am wanting to launch the default music player to play a selected song. I can play the song from within my own app, but i want to let the default player play the song. How would i go about doing this? </p>

<p>Thanks. This is what i got to work using your example.</p>

<pre><code>Intent intent = new Intent(android.content.Intent.ACTION_VIEW); 
            Uri data = Uri.parse("file://" + pathtofile); 
            intent.setDataAndType(data,"audio/mp3"); 
            try { 
                      startActivity(intent); 
               } catch (ActivityNotFoundException e) { 
                      e.printStackTrace(); 
               }
</code></pre>
