Null pointer error in thread

You’re not supposed to unregisterMethod() it! It’s a fixed callback.

Also it’s from there you need to call your other drawing methods, so they happen under the “Animation” Thread.