Skip to content

Instantly share code, notes, and snippets.

@j-onathan
Created August 7, 2014 07:53
Show Gist options
  • Save j-onathan/e95d255a5689eb9fd273 to your computer and use it in GitHub Desktop.
Save j-onathan/e95d255a5689eb9fd273 to your computer and use it in GitHub Desktop.
try {
in = pAssetManager.open(pAssetPath);
BitmapFactory.decodeStream(in, null, decodeOptions);
} catch (final IOException e) {
Debug.e("Failed loading Bitmap in AssetBitmapTextureAtlasSource. AssetPath: " + pAssetPath, e);
} finally {
StreamUtils.close(in);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment