sangmingming / robotium

Automatically exported from code.google.com/p/robotium
0 stars 0 forks source link

NullPointerException when invoke solo.setActivityOrientation(Solo.LANDSCAPE) as soon as application is launched. #94

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Launch application.
2. invoke solo.setActivityOrientation(Solo.LANDSCAPE).

What is the expected output? What do you see instead?
screen change to landscape mode normally.
NullPointerException.

What version of the product are you using? On what operating system?
Robotium 2.2
Android SDK 2.1,2.2

Please provide any additional information below.
Please help to fix it next version.

Original issue reported on code.google.com by maguowei...@gmail.com on 29 Mar 2011 at 9:16

GoogleCodeExporter commented 9 years ago
Thanks for this. It will be fixed in the next version.

Original comment by renasr...@gmail.com on 29 Mar 2011 at 10:20

GoogleCodeExporter commented 9 years ago

Original comment by renasr...@gmail.com on 30 Mar 2011 at 8:25

GoogleCodeExporter commented 9 years ago
This is corrected in Robotium 2.3

Original comment by renasr...@gmail.com on 21 Apr 2011 at 5:42

GoogleCodeExporter commented 9 years ago
Works fine for me as shown below
solo.setActivityOrientation(Solo.LANDSCAPE);
solo.sleep(1000);
solo.sendKey(solo.LANDSCAPE);
solo.sleep(1000);

Original comment by madhuwh...@gmail.com on 26 Apr 2011 at 10:10