Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
package com.example.graphicapptest; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Paint; import android.os.Handler; import android.os.Message; import android.util.AttributeSet; import android.view.SurfaceHolder; import android.view.SurfaceView; public class GraphicAppTestView extends SurfaceView implements SurfaceHolder.Callback { public class GraphicAppThread extends Thread { /** Message handler used by thread to post stuff back to the GameView */ private Handler mHandler; /** Handle to the surface manager object we interact with */ private SurfaceHolder mSurfaceHolder; private boolean mRun = false; private Bitmap mBitmapTest; private int mCanvasWidth; private int mCanvasHeight; public GraphicAppThread(SurfaceHolder surfaceHolder, Context context, Handler handler) { // TODO Auto-generated constructor stub mSurfaceHolder = surfaceHolder; mHandler = handler; mContext = context; mBitmapTest = BitmapFactory.decodeResource(mContext.getResources(), R.drawable.sheepicon); } public void doStart(){ synchronized (mSurfaceHolder) { // Init mRun = true; } } public void run() { while (mRun) { Canvas c = null; try { c = mSurfaceHolder.lockCanvas(null); synchronized (mSurfaceHolder) { doDraw(c); } } finally { // do this in a finally so that if an exception is thrown // during the above, we don't leave the Surface in an // inconsistent state if (c != null) { mSurfaceHolder.unlockCanvasAndPost(c); } } } } public void doDraw(Canvas canvas){ canvas.drawARGB(255, 0, 0, 0); canvas.drawBitmap(mBitmapTest, 10, 10, new Paint()); } public void pause(){ } /* Callback invoked when the surface dimensions change. */ public void setSurfaceSize(int width, int height) { // synchronized to make sure these all change atomically synchronized (mSurfaceHolder) { mCanvasWidth = width; mCanvasHeight = height; } } } private GraphicAppThread thread; private Context mContext; public GraphicAppTestView(Context context, AttributeSet attrs) { super(context, attrs); SurfaceHolder holder = getHolder(); holder.addCallback(this); thread = new GraphicAppThread(holder, context, new Handler() { @Override public void handleMessage(Message m) { // Use for pushing back messages. } }); setFocusable(true); // make sure we get key events } public GraphicAppThread getThread(){ return thread; } @Override public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { // TODO Auto-generated method stub thread.setSurfaceSize(width, height); } @Override public void surfaceCreated(SurfaceHolder holder) { // TODO Auto-generated method stub thread.start(); } @Override public void surfaceDestroyed(SurfaceHolder holder) { // TODO Auto-generated method stub } }