@@ -0,0 +1,973 @@
+/**%0A * %0A */%0Apackage com.cubieline.plana.view;%0A%0Aimport android.content.Context;%0Aimport android.util.AttributeSet;%0Aimport android.view.SurfaceHolder;%0Aimport android.view.SurfaceView;%0Aimport android.hardware.Camera;%0A%0A/**%0A * @author LeiGuoting%0A *%0A */%0Apublic class GameDisplay extends SurfaceView implements SurfaceHolder.Callback, Camera.PreviewCallback%7B%0A%09%0A%09public GameDisplay(Context context) %7B%0A%09%09super(context);%0A%09%7D%0A%09%0A%09public GameDisplay(Context context, AttributeSet attrs) %7B%0A%09%09super(context, attrs);%0A%09%7D%0A%0A%09@Override%0A%09public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09%0A%09%7D%0A%0A%09@Override%0A%09public void surfaceCreated(SurfaceHolder holder) %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09%0A%09%7D%0A%0A%09@Override%0A%09public void surfaceDestroyed(SurfaceHolder holder) %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09%0A%09%7D%0A%0A%09@Override%0A%09public void onPreviewFrame(byte%5B%5D arg0, Camera arg1) %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09%0A%09%7D%0A%7D%0A

add GameDisplay