title: How to call activity from a jar file in Android?
body: <p>Please help me how to call activity from a jar file in android:</p>
  
  <p>My steps:</p>
  
  <ul>
  <li><p>I had a AndroidLibrary project with a MainActivity.java </p></li>
  <li><p>I had a AndroidApp project with a SplashActivity.java. </p></li>
  <li>I imported AndroidLibrary.jar to libs folder of AndroidApp project and add build path</li>
  <li>I added path MainActivity.java in AndroidManifest.xml file of AndroidApp project</li>
  <li><p>In class SplashActivity.java i used code like this to call MainActivity.java from AndroidLibrary.jar</p>
  
  <pre><code>Intent intent = new Intent(SplashActivity.this, MainActivity.class);
  startActivity(intent);
  </code></pre></li>
  </ul>
  
  <p>However, when I call an activity from jar file , it immediately fails with ClassNotFound exception.</p>