有谁知道Android上的类,意图是什么,因此,如果我要流式传输音频文件,则会出现整个控制面板。播放暂停音量等。
最佳答案
应该这样:
Intent intent = new Intent(android.content.Intent.ACTION_VIEW);
Uri data = Uri.parse("http://..."); // or file:///...
intent.setDataAndType(data, "audio/mp3");
startActivity(intent);
关于android - Android音频控件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8440437/