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)
public class EssentialSurface extends SurfaceView implements SurfaceHolder.Callback{ //TODO: isso ta com dias contados ou não? //private TextView mStatusText; // private Screen mScreen; boolean mPressing; boolean mPaused; public Canvas canvas; public EssentialSurface(Context context, AttributeSet attrs) { super(context, attrs); setFocusable(true); // make sure we get key events setHorizontalScrollBarEnabled(true); setHorizontalFadingEdgeEnabled(true); instance.mSurfaceScreen = ScreenManager.getScreen(ScreenManager.MTM_LOGO);//ignore this getHolder().addCallback(this); } ///////////////////// LOOK AT THIS METHOD //////////////////////////////// public void gameLoop() { ///////////////////// getHolder().lockCanvas() IS THE PROBLEM.//////////////// canvas = getHolder().lockCanvas(null); update(); if(canvas!=null) { draw(canvas); getHolder().unlockCanvasAndPost(canvas); } } public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { instance.mSurfaceScreen.setSurfaceSize(width, height); } public void surfaceCreated(SurfaceHolder holder) { } public void surfaceDestroyed(SurfaceHolder holder) { } @Override public boolean onKeyDown(int keyCode, KeyEvent msg) { //instance.setContentView(R.layout.novo); return instance.mSurfaceScreen.doKeyDown(keyCode, msg); } @Override public boolean onKeyUp(int keyCode, KeyEvent msg) { mPaused = false; return instance.mSurfaceScreen.doKeyUp(keyCode, msg); } public void update(){ instance.mSurfaceScreen.update(); } @Override public void draw(Canvas canvas) { //Log.d("MAINACTIVITY","DEU DRAW COM CANVAS!!!!!!!"); //if(!mPaused){ Paint p = new Paint(); p.setColor(Color.RED); instance.mSurfaceScreen.draw(canvas); canvas.drawText("FPS: " + instance.getFPS(), 20, 20, p); //button.draw(canvas); //} } @Override public boolean onTouchEvent(MotionEvent event) { return instance.mSurfaceScreen.onTouchEvent(event); } @Override public void onWindowFocusChanged(boolean hasWindowFocus) { } public Screen getScreen(){ return instance.mSurfaceScreen; } }