Skip to content

Instantly share code, notes, and snippets.

@arpit
Created March 1, 2012 19:26
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save arpit/1952476 to your computer and use it in GitHub Desktop.
Android Image Util
private Bitmap getBitmapFromAsset(String strName) throws IOException
{
AssetManager assetManager = getAssets();
InputStream istr = assetManager.open(strName);
Bitmap bitmap = BitmapFactory.decodeStream(istr);
return bitmap;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment