I have an mp3 file on my disk. What do I do to get it to play in the default application?
I tried:
Got an error that there's no such activity.
changed to:
didn't help
Also, I have a tab widget. Is it possible to change the color of the tab labels?
I tried:
Code:
Uri uri = Uri.fromFile(file whose name ends in .mp3);
startActivity(
new Intent(Intent.ACTION_VIEW, uri));
Got an error that there's no such activity.
changed to:
Code:
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
intent.setType("audio/mpeg");
startActivity(intent);
Also, I have a tab widget. Is it possible to change the color of the tab labels?