使用相机捕捉图像和从图库上传图像的 webview 应用程序权限 [英] webview app permission for capturing images using camera and uploading images from gallery

查看:48
本文介绍了使用相机捕捉图像和从图库上传图像的 webview 应用程序权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为了允许使用相机拍照并从 android webview 应用程序中的图库上传图像,我必须放置哪些代码以及我应该把它放在哪里.

which code I have to put for allowing to take pictures using camera and uploading images from gallery in android webview app and where should I put it.

推荐答案

在 Manifest.xml 中添加:

Add in Manifest.xml:

<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

对于高于 M 的 android 版本,您必须请求权限,我指的是这个问题:

For android versions higher than M you have to ask for permissions, I'm referring to this question:

链接

这篇关于使用相机捕捉图像和从图库上传图像的 webview 应用程序权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆