0
<SurfaceView
    android:layout_width="match_parent"
    android:layout_height="300dp"
    android:id="@+id/surfaceView"/>

I want to write a code in .java file where i just want to open camera inside this surface view.

Neeraj Yadav
  • 422
  • 6
  • 13

1 Answers1

1

Well what you need is to create an Custom Camera View Here is the answer to that question How to show the camera preview on a SurfaceView?

user49557
  • 132
  • 1
  • 3
  • 11