Android Question Camera Preview in ImageView?

Beja

Expert
Licensed User
Longtime User
Solved

Hi,
After searching a little bit I didn't find an example or how to do this.
I want to display the front camera preview in an Imageview window.. my purpose is only to preview.. ne effects or taking a picture
or anything else.. Just preview but inside an ImageView and it is resized automatically to fit the ImageView .

Any help appreciated
 
Last edited:

mangojack

Expert
Licensed User
Longtime User
have you seen THIS .... .
you can trim the example down if you just want to preview the image.

See the Similar Threads section as well for other libraries etc.

Also Camera Ex class .. Probably a bit over the top for what your trying to achieve.
 
Upvote 0

Beja

Expert
Licensed User
Longtime User
Hi Mangojack,
Thanks and it is ok now.. I forgot to check the designer script and change panel1 size. in CamerEx class example.
 
Upvote 0
Top