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 MainActivity extends Activity implements Runnable{ public static MainActivity instance; public boolean isPaused; private int fps; public int MAX_GAME_FPS; public int GAME_DELAY; private Thread thread; private boolean mainThreadAlive; public EssentialSurface mSurface; Screen mSurfaceScreen; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if(instance == null){ MAX_GAME_FPS = 20; GAME_DELAY = (1000 / MAX_GAME_FPS); //String s = R.string. instance = this; isPaused = false; instance.mContext = this; } activateGamePlayMode(); } private void activateGamePlayMode(){ setContentView(R.layout.main); mSurface = (EssentialSurface) findViewById(R.id.gamex); instance.startThread(); } //please ignore this method :) public void changeScreen(int screenID){ instance.mSurfaceScreen = ScreenManager.getScreen(screenID); } /* ************************* PAUSE ****************** ****************************************************/ @Override protected void onPause() { super.onPause(); this.processPause(); instance.mSurface.mPaused = true; } public synchronized void processPause() { if (instance.isPaused == false) { instance.isPaused = true; instance.stopThread(); } } /* ************************* RESUME ****************** ****************************************************/ @Override protected void onResume() { super.onResume(); processResume(); } public void processResume() { if (instance.isPaused == true) { instance.isPaused = false; instance.startThread(); } } @Override protected void onStop() { super.onStop(); processPause(); } /* ************************* DESTROY ******************** ****************************************************/ @Override protected void onDestroy() { super.onDestroy(); instance.stopThread(); } private void stopThread() { instance.mainThreadAlive = false; } /* ************************* RUN ******************** ****************************************************/ public void run() { while (instance.mainThreadAlive) { try { long initialTime = System.currentTimeMillis(); instance.mSurface.gameLoop(); }catch (Exception e) { e.printStackTrace(); } } } private void startThread(){ while (instance.thread != null && !instance.mainThreadAlive && instance.thread.isAlive()) { try { Thread.sleep(GAME_DELAY); } catch (Exception e) { e.printStackTrace(); } } instance.thread = new Thread(instance); instance.mainThreadAlive = true; instance.thread.start(); } }