[android-developers] 2.2 Camera Orientation Problem
Hi, In my camera application, I use the following code to change the screen orientation. Parameters params = mCamera.getParameters(); params.set(orientation, portrait); It worked for the most of devices. However, after updating my NexusOne to 2.2, the above code does not work!! Is there any other way to change the orientation? The only way to change the orientation is to change the orientation of an Activity. setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); But, I don't want to do this because I have other controls like Text or Button on Screen. If somebody knows the solution for this, please help me!! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] 2.2 Camera Orientation Problem
On Thu, Jul 15, 2010 at 7:00 AM, Vincent y.ikeda.asa...@gmail.com wrote: It worked for the most of devices. It worked for most? And that was good enough for you? However, after updating my NexusOne to 2.2, the above code does not work!! What does does not work!! mean? Is there any other way to change the orientation? I'm sure there is a correct way, like the request orientation you're avoiding. Not really sure though. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en