title: Can I use Android SDK classes in a desktop application?
body: <p>I have some <code>android.graphics.Bitmap</code> data saved to a file that I want to manipulate in a desktop application.  The data is generated by a third party application, so I can't modify the app to save the data as png or jpeg.</p>
  
  <p>I am wondering if I can import the android SDK jar into a java desktop project so I can use the android.graphics.Bitmap and android.graphics.BitmapFactory classes?  I have tried adding android.jar from the SDK but when I try to call the <code>BitmapFactory.decodeByteArray()</code> method I get a runtime exception ("Stub!").</p>
  
  <p>Please help.</p>
  
  <p>If I can't import the SDK jar, does anybody know the format of the bitmaps that android uses?</p>