Hi All,

Im facing an issue with the camera Preview. The things that i have
done are

1) forcing the preview Activity to Portrait in Manifest.xml
2) Rotate the camera Preview by an angle 90 degrees using
Camera.setDisplayOrientation(90).
3) Rotate the captured image by 90 degrees using
params.set("rotation", 90)

If i do this normally, it is working fine. I can able to capture the
image.

But when i lock the screen while showing the preview ,and after unlock
the screen , the surface will not be destroyed before locking the
screen. The camera is released properly in Activity onPause().
Because of not surface destroying the camera should not able to show
the preview in the surface.

I didn't figured out any issue when the activity in "landscape"(In
manifest.xml)  mode..

My requirement is to show the preview in "portrait" mode only..

Is there any issue in my code or is it already present in Android??

Thanks in advance for valuable replies..

Thanks & Regards
Uday Kiran Pichika

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to