views:

19

answers:

0

I have an application which launches startActivityForResult so user can choose a picture. I don't want to test this, just mock a choice and return to the main Activity. How to do that? getActivity() fails with RuntimeException: Unable to resolve activity for: Intent { act=android.intent.action.MAIN ... blah..blah..blah..