sangmingming / robotium

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

PackageInstallerActivity can't be recognized #88

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
I have a problem in my test. In activity A, do some tests and then click the 
button setup, it will call a new activity B.

solo.clickOnButton("Setup");
//Starting activity: com.android.packageinstaller/.PackageInstallerActivity
It will start the new activity PackageInstallerActivity.
The getCurrentActivity() will not return the correct activity B.

What is the expected output? What do you see instead?
getCurrentActivity() should return activity B

getCurrentActivity() still return activity A

What version of the product are you using? On what operating system?
Robutium 2.2
Android 2.2
Please provide any additional information below.
I try to ues the following code
solo = new Solo(getInstrumentation());
getActivity();

It should not be the problem "it will not have time to register the new 
activity as the activity change happens instantly"

Original issue reported on code.google.com by rxf.al...@gmail.com on 18 Mar 2011 at 5:45

GoogleCodeExporter commented 9 years ago
Please see questions and answers. You are only allowed to interact and test the 
application described in the AndroidManifest.xml of your test project. 

Original comment by renasr...@gmail.com on 18 Mar 2011 at 5:39