Maybe I have explained it badly, sorry but my english is not good, In the manifest I have already set the screenOrientation in the landscape mode, for the reasons I explained before about the camera preview. Now my problemi is: how can i visualize my overlayed views in portrait (based on the user's point of view) over the camera preview, which is in the landscape mode?
or better again... I would like "to rotate" the views on every side in according to the device orientation imposed by the user, but always maintaining the camera preview in the landscape mode in the manifest. Maybe I have to use the Animation to do that? I'm not able to explain it better.... :( On 24 Apr, 14:51, Chandler <[email protected]> wrote: > Hi Paolo, > > try adding this to the manifest android:screenOrientation="portrait". > This is a setting for your whole app. > > <activity android:name=".SomeActivity" > android:label="@string/app_name" > android:screenOrientation="portrait"> > > Regards, Chandler > > On 23 apr., 22:05, Paolo <[email protected]> wrote: > > > > > > > Hi Chandlar!I have the same code but i've used it to solve another > > problem, not the things i was talking about before.I used it to avoid > > some crashes of the camera when the app restarts after a standby, > > because sometimes the camera preview gets width and height inverted. > > I'm curious... Using the camera, have you forced the activity > > orientation to let it stay in the landscape mode in the manifest or > > not? > > If I don't do that in portrait mode, the camera preview is visualized > > on the screen but divided in two parts both rotated of 90 degrees. > > So I decided to stay only in the landscape mode. > > I think it's correct, because all the app I have seen, using the > > camera, used the landscape mode by default. > > From this scenario (activity fixed in the landscape mode), I want to > > visualize some views, in my layout, overlayed on the camera preview in > > any position the user puts the device. > > Layar is the only app, which can do that. > > It seems "to rotate" all the views, which compose the layout, using > > the sensor orientation to undestand in which position the device is, > > but without modifying the activity orientation, that remains in the > > landscape to show the camera preview correctly. The same happens with > > the Option Menu. > > Why do I say that? > > Because if you try to change for example volume while Layar is > > running , the sound dialog is fixed in landscape. Have you undestood > > now my problem? I hope so. > > > Looking forward to hear from you, Kind Regards, > > > Paolo > > > -- > > 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 > > athttp://groups.google.com/group/android-developers?hl=en > > -- > 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 > athttp://groups.google.com/group/android-developers?hl=en -- 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

