0

so below is the activity I am attempting to build.

Below, you see an imageview of a house and a lake. When the user enters the activity, a camera will be opened inside a view (in this case, the view is the house and lake) and then the user will press the camera icon to take the picture. How do i go about doing that? I can't find an example online.

Hope you guys can provide an example or point me to a good documented source.

cheers!

enter image description here

TheQ
  • 1,949
  • 10
  • 38
  • 63
  • **"camera will open up in the view that has the house with the lake"** , It's not clear to me . – Zahidul Islam May 29 '16 at 07:07
  • Read more here: https://developer.android.com/training/camera/cameradirect.html – Yasir Tahir May 29 '16 at 07:15
  • So when the user enters this activity, in a view (in this case the view is the one with the picture of the house and the lake) a camera is open. The user then presses the camera icon below to take the picture. – TheQ May 29 '16 at 07:16

1 Answers1

0

Short: NO, you don't have the skills for that.

Longer: Every device maker also makes the camera app that comes with the device, it handles the inner workings / hardware stuff. Unless you want to deal with the (huge number) of device types, just use the Intent & Camera App already there. No need to get grey hairs over this. It can be done, WhatsApp does it, but there is a lot of brain power to get it done on their side.

What you CAN do is using the Intent and receive for a camera app. Like so.

To get an idea how hard it probably is: Capture Photo without Intent

Community
  • 1
  • 1