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