by isaackearl » Mon Jan 26, 2009 4:33 pm
thanks mr snowflake, this makes sense but I haven't been able to figure it out quite yet.. here is the code i'm trying to use
for (int i = 0; i < ballCount; i++) {
theCanvas.drawBitmap(ballList.get(i).getBitmap(), ballList.get(i)
.getX(), ballList.get(i).getY(), null);
theCanvas.drawText("please work", 0, 0, null);
}
this is a method i have that is called right after invalidate in the onDraw method. the program force closes on opening. if I try and specify the paint color and all that stuff instead of putting null it seems to crash too, or maybe I'm doing it wrong. If I delete theCanvas.drawText line then it works and the balls will bounce around, but trying to do a drawText just makes it crash...