Create Android library
<p>I've written a library (game engine) and would like to use it for my apps and games that I'll be creating. </p>

<p>I see there are two ways to add libraries to your code:</p>

<ol>
<li>Export to jar and add that to build path</li>
<li>Have it as a project file its self, and simply add project to build    path.</li>
</ol>

<p>I've tried the second method, yet I get a:</p>

<blockquote>
  <p>Unable to instantiate activity error</p>
</blockquote>

<p><strong>Stack trace:</strong></p>

<blockquote>
  <p>[2012-07-15 21:06:08 - ScienceProject] ------------------------------
  [2012-07-15 21:06:08 - ScienceProject] Android Launch! [2012-07-15
  21:06:08 - ScienceProject] adb is running normally. [2012-07-15
  21:06:08 - ScienceProject] Performing
  com.webstorms.scienceproject.ScienceProjectActivity activity launch
  [2012-07-15 21:06:08 - ScienceProject] Automatic Target Mode: using
  existing emulator 'emulator-5554' running compatible AVD 'HVGA'
  [2012-07-15 21:06:09 - ScienceProject] Application already deployed.
  No need to reinstall. [2012-07-15 21:06:09 - ScienceProject] Project
  dependency found, installing: WSGameEngine [2012-07-15 21:06:10 -
  WSGameEngine] Application already deployed. No need to reinstall.
  [2012-07-15 21:06:10 - ScienceProject] Starting activity
  com.webstorms.scienceproject.ScienceProjectActivity on device
  emulator-5554 [2012-07-15 21:06:12 - ScienceProject] ActivityManager:
  Starting: Intent { act=android.intent.action.MAIN
  cat=[android.intent.category.LAUNCHER]
  cmp=com.webstorms.scienceproject/.ScienceProjectActivity }</p>
</blockquote>
