Intent intent = new Intent();
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.setAction(android.content.Intent.ACTION_ALL_APPS);
intent.setDataAndType(Uri.fromFile(file), "audio");
startActivity(intent);这样貌似打不开一个mp3文件
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.setAction(android.content.Intent.ACTION_ALL_APPS);
intent.setDataAndType(Uri.fromFile(file), "audio");
startActivity(intent);这样貌似打不开一个mp3文件
解决方案 »
- xmppconnection中login登陆问题
- 如何发送HTTP PUT方式的请求
- Android XML 解析问题
- 更新progressbar出现application not response
- android 的游戏开发,是不是就是:各种类型的游戏算法啊 ?
- android开发用手机调试无打印Log信息
- 求助:如何在android中编辑PDF,即点击手机屏幕,获取对应在PDF文件上的坐标
- 求几本android APP开发的基础、进阶教程。
- 求教关于GSM语音文件获取的问题
- okHttp post 请求 中文在 服务器端显示乱码 怎么解决?(该设置的已经设置了)
- 100分请教高手一个 android串口控制台和i2c超时的问题
- Android API问题
intent = new Intent( Intent.ACTION_VIEW );
intent.setDataAndType( Uri.parse( "file://" + strFormatURI ), "audio/*" );
Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(file), "audio/*");
startActivity(intent);