相关疑难解决方法(0)

以编程方式从Android的内置Gallery应用程序中获取/选择图像

我正试图在我的应用程序内打开Gallery内置应用程序中的图像/图片.

我有一张图片的URI(图片位于SD卡上).

你有什么建议吗?

android image gallery android-intent

265
推荐指数
12
解决办法
30万
查看次数

ExifInterface不会更新exif标记

我正在尝试使用ExifInterface更改exif标签.我使用setAttribute()并调用saveAttributes().标签暂时保存,然后下一次旧值仍然存在且尚未更新................

例:

ExifInterface exifInterface = new ExifInterface(filePath);

String o1 = exifInterface.readAttribute(TAG_ORIENTATION); //o1 is "0"

exifInterface.setAttribute(TAG_ORIENTATION, "90");
exifInterface.saveAttributes();

String o2 = exifInterface.readAttribute(TAG_ORIENTATION); //o2 is "90"

// relaunch app, read attribute for same photo

String o3 = exifInterface.readAttribute(TAG_ORIENTATION); //o3 is "0" again, sould be "90"
Run Code Online (Sandbox Code Playgroud)

android exif image

6
推荐指数
2
解决办法
9419
查看次数

标签 统计

android ×2

image ×2

android-intent ×1

exif ×1

gallery ×1