Issue
what is a good way to run my test-suite in portrait and landscape mode? Is there already a way to do so or do I have to implement a solution?
Solution
When you create @Rule ActivityTestRule<MainActivity> myActivity; you can perform something like this:
myActivity.getActivity()
.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
Answered By - Alex Klymentiev
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.