Assuming you're using the emulator, you can rotate it by pressing Ctrl-
F11 (or Ctrl-Fn-F11 on a mac)
Once it's in portrait mode, activities should run with their portrait
configurations, no coding required...

Stephen


On May 5, 9:45 am, jjoe64 <g.jjo...@googlemail.com> wrote:
> Hello.
>
> I would like to unit test my app in portrait orientation. (For
> honeycomb the default orientation is landscape.)
>
> First I set the orientation to portrait by calling the method
> getActivity().setRequestedOrientation(...)
> So far so good.
>
> Now I simulate a click on a button and then a new activity will open
> (by a intent). This activity is only used in portrait orientation.
> The problem is: The new activity starts in the (default) landscape
> orientation.
>
> So what must be done, that the new activity starts in the portrait
> orientation?
>
> Thanks,
> Jonas

-- 
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

Reply via email to