I have managed to implement usage of the ACTION_IMAGE_CAPTURE intend in order to take a photo in my app. For some reason, when the photo is taken, the preview image (the image that is displayed with the tick/cross icon before it is sent back to my app) is square and really low resolution, even though the picture which I have managed to save to storage is not. I have been through all the questions that complain about a low quality image being returned, and all the answers give solutions on how to get the higher quality image in your app itself, not how to tell the camera app to use a full quality preview. Any help will be greatfully appreciated!
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
That is because there is no way for you to tell the camera app "to use a full quality preview".
There thousands upon thousands of Android device models. There are hundreds of built-in camera apps across those device models, and many more available for download from places like the Play Store. The behavior of
ACTION_IMAGE_CAPTURE
is up to those apps' developers, including:whether or not they have a confirmation screen ("displayed with the tick/cross icon before it is sent back to my app")
what the image looks like on that confirmation screen
Other than
EXTRA_OUTPUT
, there is no other documented aspect to theACTION_IMAGE_CAPTURE
protocol in terms of input, and so camera apps do not need to offer anything else.For whatever reason, your particular camera app is not implemented especially well.
try to check below code work for my app perfect.
TakeImageActivity.java
take_image_activity.xml
AndroidManifest.xml