Hi there,
i think a simple question but i did not find anything about doing it right.
I want to start a mediaplayer from my app and send that player a file to play(stream).
Would be nice to automatically choose the player associated with the mime type of the file i process to the player.
The only way to start an app is this one. But i wonder if there is a android native way.
Runtime r = Runtime.getRuntime();
try {
if(child != null) {
child.destroy();
child = null;
}
child = r.exec("player");
} catch (Exception e) {
Log.e(TAG, "error: " + e.getMessage(), e);
}
thanks