1
A
回答
2
这将创建Android的意图,以显示图像/ PNG。
Intent intent = new Intent();
intent.setAction(android.content.Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(new File(path)), "image/png");
startActivity(intent);
只要确保该文件位于所有人都可见的位置,而不是在您的私人沙箱中。将其保存到数据文件夹中的SD卡是常见的,例如。 /sdcard/data/appname/filename.png
0
使用本
intent.setData(android.Provider.MediaStore.Images.Media.Data);
相关问题
- 1. Android Image view - Camera
- 2. Android onActivityResult()with Intent
- 3. Android Flavor related Intent
- 4. Android Intent-filter VerifyError
- 5. ACTION_SEND intent android
- 6. android listview and intent
- 7. android intent putExtras
- 8. android linkify intent
- 9. Android StartAcitivty()with intent
- 10. Android - ImageView Image Boundaries Bidder then Image
- 11. Image-Crop-Activity不会将Image-Uri发送到接收活动(Android-Image-Cropper)
- 12. 上下文intent android
- 13. android intent for sdcard ready
- 14. android intent activity with id
- 15. Android响应URL Intent
- 16. android intent过滤器?
- 17. Android SMS Via Intent Without Chooser
- 18. byte [] to image android
- 19. Free Transform Android Image
- 20. Android text to image
- 21. android resize image
- 22. Android Market Image View
- 23. Android,Canvas,draw image
- 24. Android Image上传
- 25. Android Image to Base64
- 26. Android Image Asset Opacity
- 27. Android image magick
- 28. Android Image Resize basic
- 29. Android SimpleCursorAdaptor Image ViewBinder
- 30. Android Image旋转
的[在Android的内置图库应用程序打开一个图像编程]可能重复(http://stackoverflow.com/questions/2169649 /开放式的图像功能于机器人-内置画廊-APP-编程) – MByD 2012-02-17 13:01:36
退房[此] [1] [1]:http://stackoverflow.com/questions/ 2169649/open-an-image-in-androids-built-in-gallery-app-programmatically – 2012-02-17 13:36:11
Chekc out [this] [1] [1]:http://stackoverflow.com/questions/2169649/open-an-image-in-androids-built-in-gallery-app-programmatically – 2012-02-17 13:37:27