I\'m getting a IllegalStateException: underflow in restore exception, which is causing my application to crash.
This started happening after android 4.3 update.
You are calling restore() without calling save() first. You don't even need that call to translate() either, you could just pass the x and y coordinates to the drawBitmap() call.