Some code testing the canvas in android applications