用代码实现哦!谢谢
解决方案 »
- android 里怎么实现一个图层,比如说我现在有个Activity,要在上面加一个标记
- 在eclipse中编写android代码是出现错误了,求解!!!红色代码是打了波浪线出现问题的代码
- 能否判断一个APK包得完整性
- 推荐一本书,android方面的
- 新手提问在线等
- 大众点评网的那些餐饮数据是如何收集的
- 控件大小设置和超出contentview的方法
- 创建新的Android项目,Eclipse自动创建的appcompat内容
- 求大神。。小弟刚进入android
- android与服务器(java)通信
- 模似器正常运行. 真机出现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);