How does Android implement call camera? In the Android APP development process, often need to call the phone's own camera to take pictures of the code, then the android call camera code is what? Now the wheat College Android Development teacher told everyone,android Call Camera This method is very simple and practical, the need for small partners can refer to the next.
Scenario: During the Android development process, it is sometimes necessary to invoke the function of the phone's own device, this article focuses on the call of camera photo function. Knowledge Point: Use rights: Call the phone's own device function (camera photo function), you should ensure that the use of the camera and other related feature is correctly stated in Androidmanifest.xml
1. Camera-related permissions settings
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<!-- Camera Permissions - <uses-permission android:name= "Android.permission.CAMERA"/> <!-- Storage Permissions SD card Read and Write permissions - <uses-permission android:name= "Android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/> <uses-permission android:name= "Android.permission.WRITE_EXTERNAL_STORAGE"/> <!--Camera Feature statement to camera Feature the Use - <uses-feature android:name= "Android.hardware.camera"/> <uses-feature Android:name= "Android.hardware.camera.autofocus" Android:required= "false"/> <!-- video, recording permissions Request audio capture permissions -- <uses-permission android:name= "Android.permission.RECORD_VIDEO"/> <uses-permission android:name= "Android.permission.RECORD_AUDIO"/> |
If you want to know more about Android development and video tutorials, you can go to: Http://www.maiziedu.com/course/android/
Wheat Academy Android Live call webcam code share