Application scenario: In the Android development process, it is sometimes necessary to call the phone's own device function, this article focuses on the camera function calls. Knowledge Points: Access to the phone's own device function (camera photo function), should ensure that the Androidmanifest.xml has been correctly stated in the use of the camera and other related feature
1. Camera Related permission settings
<!--camera permissions-->
<uses-permission android:name= "Android.permission.CAMERA"/>
<!--storage permissions SD card Read and Write permission-->
<uses-permission android:name= "Android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>
< Uses-permission android:name= "Android.permission.WRITE_EXTERNAL_STORAGE"/>
<!--Camera Feature declaration on Camera The use of feature-->
<uses-feature android:name= "Android.hardware.camera"
/> <uses-feature Android:name= "Android.hardware.camera.autofocus"
android:required= "false"/>
<!--video, recording permissions Request Audio capture Permission-->
<uses-permission android:name= "Android.permission.RECORD_VIDEO"/>
< Uses-permission android:name= "Android.permission.RECORD_AUDIO"/>
The above mentioned is the entire content of this article, I hope you can enjoy.