title: Can you call getInstrumentation() from a test class in a referenced Android library?
body: <p>I am working on implementing automated unit tests for our application. Want i need to do is be able to choose from a list of test cases and execute said test. My initial idea was to create (1) a standalone application that references a (2) testing library (android project with a bunch of unit tests) that would invoke the activities in our (3) application. So our application of course works fine and I don't want to make any changes there if possible. The standalone application would server as an interface to us developers for executing the tests. I want to be able to add more and more tests to the library. The issue I am having at this point is what follows.</p>
  
  <p>In the library project I have a basic LoginTest activity.</p>
  
  <pre><code>public class LoginTest extends InstrumentationTestCase
  {
  
    ... other class code
  
  
    @Override
    protected void setUp()
    {
      solo = new Solo(getInstrumentation());
    }
  
  
  }
  </code></pre>
  
  <p>My issue is the <code>getInstrumentation()</code> call always returns null. In my library manifest I have</p>
  
  <pre><code>&lt;instrumentation
      android:name="android.test.InstrumentationTestRunner"
      android:targetPackage="com.matrix.edc.client.android" /&gt;
  </code></pre>