Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何从我们的原始文件夹中播放系统内置音乐播放器中的音乐文件?
假设您的原始文件夹中已经有媒体文件.. 试试这样::
private MediaPlayer mp; mp =new MediaPlayer(); mp = MediaPlayer.create(YOUR ACTIVITY, R.raw.mediafile); mp.start();