Instrument Activity that runs on foreign process
<p>I have two applications X and Y. Application X has one activity "A" that needs to run on the application Y`s process. I am trying to create an instrumentation test like bellow:</p>

<p>public class ATest extends SingleLaunchActivityTestCase {...}</p>

<p>The issue is that when I point the AndroidManifest.xml of my test application to instrument process X I get the following error:</p>

<p>java.lang.RuntimeException: Intent in process test.application.a resolved to different process test.application.b</p>

<p>I expected that since if activity A runs on process Y the instrumentation framework must run on the same target process Y.</p>

<p>But if I change to instrument process Y then the following error occurs:
java.lang.RuntimeException: Exception during suite construction
    at android.test.suitebuilder.TestSuiteBuilder$FailedToCreateTests.testSuiteConstructionFailed(TestSuiteBuilder.java:239)
...
Caused by: java.lang.NoClassDefFoundError: test.application.a.A</p>

<p>I guess that happens since on application Y there is no class test.application.a.A!</p>

<p>Is this a limitation from the instrumentation framework?</p>

<p>Thanks in advance!</p>
