I have a NullPointerException being thrown in my code:
canvas.drawBitmap(icon, null, rect, null);
I have a Log statement right above there to make sure the canvas is not null. I'm guessing the 2nd Rect being null is the problem? I thought it was ok to leave it as null.
Here is the logCat output:
07-22 21:34:16.807: E/AndroidRuntime(19340): FATAL EXCEPTION: Thread-3384
07-22 21:34:16.807: E/AndroidRuntime(19340): java.lang.NullPointerException
07-22 21:34:16.807: E/AndroidRuntime(19340): at
android.view.GLES20RecordingCanvas.drawBitmap(GLES20RecordingCanvas.java:118)
07-22 21:34:16.807: E/AndroidRuntime(19340): at
com.live.LedgeView$DrawLedgeThread.run(LedgeView.java:88)