title: Converting Android Bitmap to LibGdx's Texture
body: <p>i am trying to convert bitmap into a libGDX Texture by converting:</p>
  
  <ol>
  <li>Android <code>Bitmap</code> to <code>byte[]</code></li>
  <li><code>byte[]</code> to libGDX <a href="http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/graphics/Pixmap.html" rel="nofollow"><code>Pixmap</code></a></li>
  <li>libGDX <code>Pixmap</code> to libGDX <code>Texture</code></li>
  </ol>
  
  <p>The problem I am facing is that the bitmap which is converted to texture is drawing the sprite sheet from texture packer that is in assets folder</p>
  
  <pre><code>public void onByteArrayOfCroppedImageReciever(byte[] bytes) {
      try {
          pmap=new Pixmap(bytes, 0, bytes.length);
          tex=new Texture(pmap);
          face=new Sprite(tex);
          // game.setScreen(new GameScreen(game, batcher, face));
      } catch(Exception e) {
          Gdx.app.log("KS", e.toString());
          e.printStackTrace();
      }
  }
  </code></pre>