title: Android print framework - Silent print custom pdf to predetermined printer
body: <p>I am developing a POS application for android.
  What i need to do is print the bill when you click on a button.
  The print needs to happen silently to a predetermined printer without any interaction with the app. The printer will be found with its IP address set up in code.
  The connection should happen true wifi or bluetooth (probably wifi).</p>
  
  <p>What i have tried so far is use the android print framework (In Android 4.4 (API level 19) ), but it seems to be stuck to the gui (Again i dont want any gui for the print, it just needs to happen). I couldn't find the option to set the printer IP true code.</p>
  
  <p>I have followed a simple tutorial to create the code that i have right now.
  Here is a link to it:
  <a href="http://www.techotopia.com/index.php/An_Android_Custom_Document_Printing_Tutorial" rel="nofollow noreferrer">http://www.techotopia.com/index.php/An_Android_Custom_Document_Printing_Tutorial</a></p>
  
  <p>So to recap, i need my custom Android POS app to print bills(or just anything for starters) to a predetermined printer that i set up in code.</p>
  
  <p>It seems that Rongta pos printers has a android sdk.
  I guess other manufacturers have to have one as well for their printers.</p>