已经解决了、、、问题出在vendor/qcom/proprietary/qrdplus/FileExplorer这个工程下、里面有一个发广播去重新扫描并停掉音乐的操作、 private final Handler handler = new Handler(){} 这个里面的最下面的那个注释掉就好了、 /* deleted by zhaoxiangbin 2013-05/09 * else if(multimedia == 1){ // if operate the media file, need update the media library. Uri uri = Uri.parse("file://" + Environment.getExternalStorageDirectory()); Intent intent = new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_AUDIO, uri); sendBroadcast(intent); } */
重新写入mediaprovider中、音乐停止、、那肯定会发广播去停止的嘛、但是在mediaprovider中并没有这方面的代码啊、
播放之前将文件复制到临时文件里 让播放器从临时文件中读取
已经解决了、、、问题出在vendor/qcom/proprietary/qrdplus/FileExplorer这个工程下、里面有一个发广播去重新扫描并停掉音乐的操作、
private final Handler handler = new Handler(){}
这个里面的最下面的那个注释掉就好了、
/* deleted by zhaoxiangbin 2013-05/09
* else if(multimedia == 1){
// if operate the media file, need update the media library.
Uri uri = Uri.parse("file://" + Environment.getExternalStorageDirectory());
Intent intent = new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_AUDIO, uri);
sendBroadcast(intent);
}
*/