Wheat Academy Android Live call webcam code share

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.