Hi Joao,

Here it is:

BitmapFactory.Options opts = new BitmapFactory.Options();
opts.inScaled = false;
Bitmap b = BitmapFactory.decodeResource( context.getResources(),
R.drawable.testImage, opts );
b.getWidth(); // <======== NPE

This always works for me when I test it.
Thanks,
Chad


On Sep 29, 1:15 pm, Joao Braga <jp.am.br...@gmail.com> wrote:
> Paste your code here...just the line where you try to create the bitmap.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to