title: Creating a product SDK: How do I add a native lib (.so) and a jar with the SDK I am creating?
body: <p>I am creating a widget that we will provide to developer end users and it consists of a <code>.jar</code> and a native library (<code>.so</code>) built using the NDK. The JAR has a JNI interface to the dynamic library.</p>
  
  <p>It's very clear on how to include an external <code>.jar</code> in a project but not how to include a dependent dynamic library.</p>
  
  <ol>
  <li><p>How do I package up and build the <code>.jar</code> and <code>.so</code>? What are the best practices here? </p></li>
  <li><p>I can create the JAR file using the JDK's jar command. Do I need to run dx.bat on the jar to convert to Dalvik bytecode?</p></li>
  <li><p>I need to create a sample project showing the widget in action. How do I include this <code>.jar</code> and <code>.so</code> in a sample project that demonstrates how to use the widget? </p></li>
  </ol>