android调用系统相机6,Android 调用系统相机拍照的返回结果

1.打开相机的Intent Action:MediaStore.ACTION_IMAGE_CAPTURE,下面为它的注释:/*** Standard Intent action that can be sent to have the camera application* capture an image and return it.* * The caller may pass an ext...
摘要由CSDN通过智能技术生成

1.打开相机的Intent Action: MediaStore.ACTION_IMAGE_CAPTURE,下面为它的注释:

/**

* Standard Intent action that can be sent to have the camera application

* capture an image and return it.

*

* The caller may pass an extra EXTRA_OUTPUT to control where this image will be written.

* If the EXTRA_OUTPUT is not present, then a small sized image is returned as a Bitmap

* object in the extra field. This is useful for applications that only need a small image.

* If the EXTRA_OUTPUT is present, then the full-sized image will be written to the Uri

* value of EXTRA_OUTPUT.

* As of {@link android.os.Build.VERSION_CODES#LOLLIPOP}, this uri can also be supplied through

* {@link android.content.Intent#setClipData(ClipData)}. If using this approach, you still must

* supply the uri through the EXTRA_OUTPUT field for compatibility with old applications.

* If you don't set a ClipData, it will be copied there for you when calling

* {@link Context#startActivity(Intent)}.

*

*

Note: if you app targets {@link android.os.Build.VERSION_CODES#M M} and above

* and declares as using the {@link android.Manifest.permission#CAMERA} permission which

* is not granted, then atempting to use this action will result in a {@link

* java.lang.SecurityException}.

*

* &#

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值