[android-developers] Re: Question about android instrumentation

2009-02-03 Thread Dianne Hackborn
If you just want to have the method called, you can post work to the main thread and directly call the method on the activity. If you want to mock out some other activity it is launching to return your own result, you can add an activity watcher to look for the launch, cancel it, and return the

[android-developers] Re: Question about android instrumentation

2009-02-03 Thread Dianne Hackborn
On Tue, Feb 3, 2009 at 5:22 PM, Meryl Silverburgh silverburgh.me...@gmail.com wrote: When you mean 'main' thread, does that mean the thread create by the android.test.InstrumentationTestRunner when running my TestCase? No, the test case runs in a separate thread, so the main application