禁用 Android 相机自动缩略图

Disabling Android Camera automatic thumbnail

我看到Android拍照时会自动生成缩略图,并用"data"键将其另存为附件。是否可以禁用该操作,以便在设备中保存 space?

I've seen that Android automatically generates a thumbnail when taking a photo, and saves it as an extra with the key "data".

不,不是。 相机应用程序 可能会生成缩略图并将它们放在与 setResult() 一起使用的 Intent 中的 data extra 中。 Android,操作系统,没有。

Is it possible to disable that action, as to save space in the device?

我不知道 "space" 你认为你会 "save"。该缩略图在系统 RAM 中短暂保存。它没有存储在磁盘上。

如果您是一名程序员,如果您正在编写 Android 应用程序,并且如果您正在使用 ACTION_IMAGE_CAPTURE IntentstartActivityForResult() 来调用第三个应用程序-party camera app,那么你可以包含 EXTRA_OUTPUT 来指示你想要写入全尺寸图像的位置。根据 the ACTION_IMAGE_CAPTURE specification,在这种情况下不需要 data extra。一些相机应用程序将跳过这些额外内容。

但是,我们欢迎第三方相机应用程序的开发者为所欲为。如果他们想在每个 ACTION_IMAGE_CAPTURE 请求上创建额外的 data,这是他们的决定,因为他们是编写相机应用程序的人。