On Tue, Feb 3, 2009 at 4:52 PM, Dianne Hackborn <hack...@android.com> wrote: > 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.
When you mean 'main' thread, does that mean the thread create by the android.test.InstrumentationTestRunner when running my TestCase? > > 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 desired result. Thank you. Can you please tell me where I can find an example of "can add an activity watcher to look for the launch, cancel it, and return the desired result"? I did try google it, but I don't see the anything useful. Thank you for any more pointers. > > On Tue, Feb 3, 2009 at 2:46 PM, silverburgh.me...@gmail.com > <silverburgh.me...@gmail.com> wrote: >> >> Hi, >> >> Can you please tell me if you know how to get the Andorid unit test >> instrementation to call my activity's onActivityResult()? >> >> I can't find anything here: >> http://code.google.com/android/reference/android/app/Instrumentation.html >> >> Thanks in advance. >> >> >> >> > > > > -- > Dianne Hackborn > Android framework engineer > hack...@android.com > > Note: please don't send private questions to me, as I don't have time to > provide private support. All such questions should be posted on public > forums, where I and others can see and answer them. > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---