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
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
Paolo wrote:
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?
AFAIK, Android will not help you with this. A few widgets are more or
less orientation independent (e.g.,
Maybe I have to use the Animation to do that?
Oh, heck no.
Why you say no?
--
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
Paolo wrote:
Maybe I have to use the Animation to do that?
Oh, heck no.
Why you say no?
Simple: that's not what animations are for. Animations are for transient
effects, where you actually see the movement. If you want true permanent
change to the widget, you need to do something to affect
Try to explain better...
My activity use the Camera, so i must to fix the activity in
landscape, otherwise the preview doesn't work correctly...
So, i have the activity fixed in landscape mode, but I want to
visualize my layout (views, menu etc...) in all direction.
Do you have in mind Layar?
On Fri, Apr 23, 2010 at 10:32 AM, Paolo brand...@gmail.com wrote:
My activity use the Camera, so i must to fix the activity in landscape,
otherwise the preview doesn't work correctly...
I haven't used the camera, so I have no idea how it works, but are you sure
you HAVE to fix it to
I haven't used the camera, so I have no idea how it works, but are you sure
you HAVE to fix it to landscape?
Yes, I'm quite sure...
I just tried their app and as far as I can tell it's just letting Android do
it's orientation thing while keeping the camera preview open.
I think your main
Paolo,
I think I understand what your problem is. I had similar problems and
I solved it with this code. It's probably bad programming, so please
use it only as a temporary solution, just to see if this where your
problem originates. Note the switching of width and height.
public void
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
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
11 matches
Mail list logo