How to Control 2 Activites Using Instrumentation

Put your problem here if it does not fit any of the other categories.

How to Control 2 Activites Using Instrumentation

Postby iqueen » Wed Jun 30, 2010 12:17 pm

Hi guys,
I'm new to android, Is it possible to control two activities from two packages using instrumentation.

I only know how to control An activity, by 'extends InstrumentationTestCase', defining <instrumentation> in the AndroidManifest.xml, if I use this way to control two different activities from two different packages, it stops at Instrumentation.startActivitySync, says '
throw new RuntimeException("Intent resolved to different package "
+ ai.applicationInfo.packageName + ": "
+ intent); '
Can anyone tell me how to do that, thanks.

- iqueen
iqueen
Freshman
Freshman
 
Posts: 3
Joined: Tue Dec 09, 2008 6:33 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 12 guests