tags:

views:

649

answers:

2

Hai to All Anybody know about the camera Api in android.when i used this Api it displayed a black and white grids and a squre moving above it.Anyone know how to get a real time camera preview please help me with some code.

+1  A: 

Are you in the emulator? Have you set the camera permission? That is the screen you get when there isn't a camera available.

hacken
A: 

Hi Rajapandian,

You almost got the solution for the camera part, Check the code in the real device, i hope it would be working perfect in the device, since its the view from the emulator, you will be getting "white and black grids and a square moving above it." In the real device you will be getting the preview of what you are focusing on.

Nandagopal T