title: how to include and use stariosdk for android bluetooth printing
body: <p>i am in android app and i want to use stariosdk in order to print a receipt from my app.</p>
  
  <p>This is the link for star SDK: <a href="http://www.starmicronics.com/support/SDKDocumentation.aspx" rel="nofollow">http://www.starmicronics.com/support/SDKDocumentation.aspx</a></p>
  
  <p>I'm trying to follow the sdk's guides:</p>
  
  <p>All functionality is located in the src folder in the com.StarMicronics.StarIOSDK package.</p>
  
  <p>Run the program by selecting StarIOSDKActivity.java; this source code is the starting point for both POS and Mobile Printers.</p>
  
  <p>See how specific functions work by clicking on the other source files. For example, “code128Activity.java” corresponds to the 1D barcode Code128 in the GUI.</p>
  
  <p>It is important to note that not every function is available for both printer types. The first page of each SDK manual shows which functions are supported. They are listed again here for convenience:</p>
  
  <p>Portable Printers</p>
  
  <p>• No Cash Drawer support</p>
  
  <p>• No Cut Pattern support </p>
  
  <p>POS Printers</p>
  
  <p>• No Magnetic Stripe Reader support</p>
  
  <p>In addition, source files containing “Mini” are for portable printer models only.</p>
  
  <p>StarBitmap.java applies to both printer types. </p>
  
  <p>and these:</p>
  
  <p>The file StarIO.jar is a library that you can include into your Java projects to expose StarIO
  methods.
  To include this library into your project:</p>
  
  <ol>
  <li><p>Drag StarIOPort.jar into the Project Explorer from the SDK package</p></li>
  <li><p>Right click the project folder and choose Properties</p></li>
  <li><p>Click Java Build Path</p></li>
  <li><p>Click Libraries and the Add JARs button</p></li>
  <li><p>At the top of your main code add:</p>
  
  <p>import com.starmicronics.stario.StarIOPort;</p>
  
  <p>import com.starmicronics.stario.StarIOPortException;</p>
  
  <p>import com.starmicronics.stario.StarPrinterStatus;</p></li>
  <li><p>Now you can access all of StarIO’s methods!</p></li>
  </ol>
  
  <p>I need help in order to understand the difference between StarIOPort.jar and StarIOSDKActivity.java and how to use it.</p>
  
  <p>I want to use only MiniPrinterFunctions.java for mobile printers...</p>