怎么调用android自带图片浏览器打开sd卡上的图片 用代码实现哦!谢谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 网上有android资源管理器或者文件管理器的源代码,里面有实现,你可以看下。其实说白了,就是intent和MimeType的使用 方法一File file=new File("/sdcard/IMG/1.jpg"); Intent it = new Intent(Intent.ACTION_VIEW); Uri mUri = Uri.parse("file://"+file.getPath()); it.setDataAndType(mUri, "image/*"); startActivity(it); 方法二 ComponentName componentName=new ComponentName("com.cooliris.media","com.cooliris.media.Gallery"); Intent intent=new Intent(); intent.setComponent(componentName); File file=new File("/sdcard/IMG/1.jpg"); Uri mUri = Uri.parse("file://"+file.getPath()); intent.setData(mUri); intent.setAction(Intent.ACTION_VIEW); startActivity(intent); android截取视频当前画面 关于android的不同机型界面布局问题 看看俺的android背单词软件怎么样! Android2.0 Camera问题 java IO操作困惑 android 弹出框返回值 android发送短信问题 Android给widget发送广播接收慢,有什么解决办法吗? 微视,美拍,搜狐视频,微信在屏幕中播放规则? webpack 安装报错 模似器正常运行. 真机出现so 加载失败 android怎样对sdcard里xml文件修改并保存?
其实说白了,就是intent和MimeType的使用
File file=new File("/sdcard/IMG/1.jpg");
Intent it = new Intent(Intent.ACTION_VIEW);
Uri mUri = Uri.parse("file://"+file.getPath());
it.setDataAndType(mUri, "image/*");
startActivity(it);
ComponentName componentName=new ComponentName("com.cooliris.media","com.cooliris.media.Gallery");
Intent intent=new Intent();
intent.setComponent(componentName);
File file=new File("/sdcard/IMG/1.jpg");
Uri mUri = Uri.parse("file://"+file.getPath());
intent.setData(mUri);
intent.setAction(Intent.ACTION_VIEW);
startActivity(intent);