package com.example.raceontarantasses; import android.graphics.Canvas; import android.graphics.Color; import android.os.Bundle; import android.view.SurfaceHolder; import android.view.SurfaceView; import samodelkin.androidsimplestgamelibrary.*; public class MyGameActivity extends GameActivity implements SurfaceHolder.Callback,Runnable{ private SurfaceHolder holst; private InertialLayerSprite player; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); this.setScreenMode(1); setContentView(R.layout.game); SurfaceView sv=(SurfaceView)findViewById(R.id.game_surface); holst=sv.getHolder(); holst.addCallback(this); new Thread(this).start(); } @Override public void run() { Canvas c=holst.lockCanvas(); c.drawColor(Color.WHITE); holst.unlockCanvasAndPost(c); } @Override public void surfaceChanged(SurfaceHolder arg0, int arg1, int arg2, int arg3) { // TODO Auto-generated method stub } @Override public void surfaceCreated(SurfaceHolder arg0) { } @Override public void surfaceDestroyed(SurfaceHolder arg0) { // TODO Auto-generated method stub } }