MainThread.java
package com.example.myapplication; import android.graphics.Canvas; import android.view.SurfaceHolder; public class MainThread extends Thread