Reputation: 422
<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.
Upvotes: 0
Views: 121
Reputation: 132
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?
Upvotes: 1