I\'ve released an IME (soft keyboard) app and I am getting crash reports from HTC phones only. Here is the stack trace:
java.lang.NullPointe
Have you tried supplying Drawable.createFromResourceStream
with a full set of valid params?
I've looked at the Android code, and you saftely pass both a dummy TypedValue
and a dummy Options
objects and still maintain the default behaviour.
So:
Options opts = new BitmapFactory.Options();
TypedValue dummy = new TypedValue();
Drawable d = Drawable.createFromResourceStream( mContext.getResources(), dummy, in, assetPath, opts);
Can anyone verify this on an HTC device?