I think that the reply meant that you need to write a test harness that 
monitors your activity and the destination activity.

However, what you're trying to do is not a unit test, and 
ActivityInstrumentationTestCase2 is a unit/functional test case class, not 
a generic testing class. It will test the internal workings of the activity 
under test. It has no knowledge of anything beyond that, so in general you 
can't launch an outside Activity or get results back from one.

To run part of a test on the UI thread, call getActivity() to get a handle 
to the activity under test, then call Activity.runOnUiThread() to execute 
methods in the activity.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to