I want to stream the camera preview of the android camera, onto a view. The intention is to afterwards add various things to the view, using onDraw(). I don’t need to actually capture the image at any time.
It doesn’t have to be in the highest quality or largest number of frames per second.
Does anyone have an idea how this can be done?
I want to stream the camera preview of the android camera, onto a view.
Share
add this to your xml:
into your activity-class:
onCreate-Method:
and the preview-class: