# Zoom integration with android end point

**URL:** <https://devforum.zoom.us/t/zoom-integration-with-android-end-point/1487>\
**Category:** Android\
**Created:** [July 27, 2018, 4:49am UTC](https://devforum.zoom.us/t/zoom-integration-with-android-end-point/1487 "2018-07-27T04:49:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bharath\_Kumar\_B](https://avatars.discourse-cdn.com/v4/letter/b/a5b964/32.png) [@Bharath\_Kumar\_B](https://devforum.zoom.us/u/Bharath_Kumar_B)\
**Post date:** [July 27, 2018, 4:49am UTC](https://devforum.zoom.us/t/zoom-integration-with-android-end-point/1487/1 "2018-07-27T04:49:14Z")

</div>

We are trying to integrate zoom SDK on anrdroid end point, but unable to access the camera as this is not a default camera but we can access the camera only in surface view mode. Can you please help us on how we can integrate the same

&nbsp;

 ![](https://support.zoom.us/hc/user_images/HrhhkIIlDrkln9MziVF-7w.jpeg)

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![Jacky\_Du](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jacky_du/32/63_2.png) [@Jacky\_Du](https://devforum.zoom.us/u/Jacky_Du)\
**Post date:** [July 28, 2018, 12:50am UTC](https://devforum.zoom.us/t/zoom-integration-with-android-end-point/1487/2 "2018-07-28T00:50:13Z")

</div>

Our SDK will check the android device’s cameras by the system api. we will get the front and back cameras and usb cameras.  
What’s the type of your devece’s camera? And could you provide code sample how to access the camera?

---

<div class="post-metadata">

**Author:** ![Bharath\_Kumar\_B](https://avatars.discourse-cdn.com/v4/letter/b/a5b964/32.png) [@Bharath\_Kumar\_B](https://devforum.zoom.us/u/Bharath_Kumar_B)\
**Post date:** [July 30, 2018, 1:33pm UTC](https://devforum.zoom.us/t/zoom-integration-with-android-end-point/1487/3 "2018-07-30T13:33:24Z")

</div>

Dear Jacky Du,

Our device is a Android Endpoint, similar to Cisco / Polycom endpoint&nbsp; for which we are looking to integrate ZOOM so that customers can use them out of box. You can access the camera from surface mode find below the code to do the same

&nbsp;

 ![](https://support.zoom.us/hc/user_images/xcZPS4idIYXLOEhERt2Jvw.jpeg)

&nbsp;

&nbsp;

&nbsp;

```
 surfaceHolder = surfaceView.getHolder();
 surfaceHolder.addCallback(this);
 surfaceHolder.setType(SurfaceHolder.SURFACE\_TYPE\_PUSH\_BUFFERS);

 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) {
 // Now that the size is known, set up the camera parameters and begin
 // the preview.
 setCameraDisplayOrientation(MyMeetingActivity.this, getFrontCameraId(), camera);
 // mCamera.startPreview();
 }

 public void surfaceCreated(SurfaceHolder holder) {
 try {
 // open the camera
 camera = Camera.open(getFrontCameraId());
 } catch (RuntimeException e) {
 // check for exceptions
 System.err.println(e);
 return;
 }
 Camera.Parameters param;
 param = camera.getParameters();

 // modify parameter
 param.setPreviewSize(352, 288);
 camera.setParameters(param);
 try {

 // The Surface has been created, now tell the camera where to draw
 // the preview.
 camera.setPreviewDisplay(surfaceHolder);
 camera.startPreview();
 } catch (Exception e) {
 // check for exceptions
 System.err.println(e);
 return;
 }
 }

 public void surfaceDestroyed(SurfaceHolder holder) {
 // stop preview and release camera
 camera.stopPreview();
 camera.release();
 camera = null;
 }
```
