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 MainClass extends Activity { AppView theAppView = null; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); this.theAppView = new AppView(this); setContentView(this.theAppView); } public void endGame1() { Intent intent = new Intent(MainClass.this, HighScoreScreen.class); startActivity(intent); finish(); } } public class AppView extends SurfaceView implements SurfaceHolder.Callback { private Graphics goldImage, blueImage2; MainClass t2; public AppThread _thread; private int _x; private int _y; CountDownTimer timer; private Map _bitmapCache = new HashMap(); public AppView(Context context) { super(context); fillBitmapCache(); getHolder().addCallback(this); _thread = new AppThread(getHolder(), this); t2 = new MainClass(); scoreColor.setColor(Color.WHITE); scoreColor.setTextSize(30); goldImage = new Graphics(_bitmapCache.get(R.drawable.targetgold)); blueImage2 = new Graphics(_bitmapCache.get(R.drawable.targetblue)); runTimer(); } public void runTimer() { timer = new CountDownTimer(6000000, 100) { public void onTick(long millisUntilFinished) { if (gameIsRunning==true) { miliseconds++; if (miliseconds==10) { seconds++; miliseconds=0; } if (seconds==60) { seconds = 0; minutes++; } if (chosenGameLength==seconds) { doneGame=1; timer.onFinish(); } } } public void onFinish() { timer.cancel(); } }.start(); if (doneGame==1) { endGame(); } } public void endGame() { Intent intent = new Intent(t2, HighScoreScreen.class); t2.startActivity(intent); } public int getDoneStatus() { return doneGame; } public void fillBitmapCache() { _bitmapCache.put(R.drawable.targetgold, BitmapFactory.decodeResource(getResources(), R.drawable.targetgold)); _bitmapCache.put(R.drawable.targetblue, BitmapFactory.decodeResource(getResources(), R.drawable.targetblue)); } @Override public boolean onTouchEvent (MotionEvent event) { MainClass tp1 = new MainClass(); tp1.endGame1(); return true; } @Override public void onDraw(Canvas canvas) { Bitmap bitmap; Graphics.Coordinates coords; coords = goldImage.getCoordinates(); bitmap = goldImage.getGraphic(); canvas.drawBitmap(bitmap, coords.getX(),coords.getY(), null); Bitmap bitmap3; Graphics.Coordinates coords3; coords3 = blueImage2.getCoordinates(); bitmap3 = blueImage2.getGraphic(); canvas.drawBitmap(bitmap3, coords3.getX(),coords3.getY(), null); } @Override public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { } @Override public void surfaceCreated(SurfaceHolder holder) { _thread.setRunning(true); _thread.start(); } @Override public void surfaceDestroyed(SurfaceHolder holder) { boolean retry = true; _thread.setRunning(false); while (retry) { try { _thread.join(); retry = false; } catch (InterruptedException e) { } } } } class AppThread extends Thread { private SurfaceHolder _surfaceHolder; private AppView _appView; private boolean _run = false; public AppThread(AppView appView) { _AppView = appView; } public AppThread(SurfaceHolder surfaceHolder, AppView appView) { _surfaceHolder = surfaceHolder; _appmView = appView; } public void setRunning(boolean run) { _run = run; } public SurfaceHolder getSurfaceHolder() { return _surfaceHolder; } public boolean isRunning() { return _run; } @Override public void run() { Canvas c; while (_run) { c = null; try { c = _surfaceHolder.lockCanvas(null); synchronized (_surfaceHolder) { _appView.onDraw(c); } } finally { if (c != null) { _surfaceHolder.unlockCanvasAndPost(c); } } } } }