Skip to content

Instantly share code, notes, and snippets.

@darwind
Created March 16, 2015 19:42
Show Gist options
  • Save darwind/02f5bea23338af53ab42 to your computer and use it in GitHub Desktop.
Save darwind/02f5bea23338af53ab42 to your computer and use it in GitHub Desktop.
Android: load bitmap from Drawable
Bitmap icon = BitmapFactory.decodeResource(context.getResources(), R.drawable.icon_resource);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment