0

I want to draw some thing on the view which we get when our camera is on in android mobile.

I do not want to take picture nor record video just that view from camera and then draw some thing on screen.

Drawing on screen will not be and issue but when we turn on camera which view we get and how can we use that view in our application?

Jaswant Singh
  • 9,900
  • 8
  • 29
  • 50
Rafay Muneeb
  • 1
  • 1
  • 1
  • 1

2 Answers2

2

You'll want to check androids camera-API.

You can get the preview to display in a SurfaceView or your own View-subclass, which can then be used to draw on. Some more knowledge might be found here.

Community
  • 1
  • 1
Lukas Knuth
  • 25,449
  • 15
  • 83
  • 111
1

You can use a RelativeLayout to put other views aligned with the surfaceView used for camera preview

Fernando Gallego
  • 4,064
  • 31
  • 50