Hi Vijay, I found it helpful to take a look at the 2.1 stock camera application source code itself for some ideas. For 2.1 most people that I've spoken to have locked the activity to landscape as that is guaranteed to be supported by most phones. Attempting to rotate to portrait may not be supported by all hardware running 2.1? The stock camera activity itself is locked to landscape, and I've yet to see an application using the camera preview on my 2.1 device that does not do the same... If anyone has any knowledge to the contrary it would be most welcome, for 2.1!
http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android-apps/2.1_r2/com/android/camera/Camera.java#Camera On Apr 3, 11:04 am, vijay singh <[email protected]> wrote: > I am trying to develop an application which uses the camera in a > device....but my preview is 90 degrees rotated (anticlockwise) in both > landscape and portrait mode.....I tried mpreview.setRotation(90) > method but nothing happens..... > > I am using the code somewhat similar to cameraPreview.java file > available with the SDK kit. > plz help. -- 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

