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.Waldev.Game3; import android.app.Activity; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Rect; import android.os.Bundle; import android.view.Display; import android.view.MotionEvent; import android.view.SurfaceHolder; import android.view.SurfaceView; import android.view.Window; import android.view.WindowManager; public class superSpecialAwesome extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { final Window win = getWindow(); super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); win.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); setContentView(new panel(this)); } class panel extends SurfaceView implements SurfaceHolder.Callback{ //same as game engine I guess private awesomeThread thread; private int checkState = 0; private Bitmap bG = BitmapFactory.decodeResource(getResources(), R.drawable.background);; private final Paint paint = new Paint(); private final Rect rectBitmap = new Rect(); private final Rect rect = new Rect(); private boolean movement = false; private Display display = ((WindowManager) getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay(); private int bitmapLeft = 0; private int bitmapTop = 0; private int bitmapRight = display.getWidth(); private int bitmapBottom = display.getHeight(); private int x = 0; private int y = 0; private int xDown = 0; private int yDown = 0; public panel(Context context) { super(context); getHolder().addCallback(this); thread = new awesomeThread(getHolder(), this); setFocusable(true); } public void setCanvasSize(int width, int height){ rect.top = 0; rect.left = 0; rect.bottom = height; rect.right = width; } public void updateBitmapDim(){ if(movement){ if(x > xDown){ bitmapLeft = bitmapLeft+10; bitmapRight = bitmapRight+10; } else if(x < xDown){ bitmapLeft = bitmapLeft-10; bitmapRight = bitmapRight-10; } if(y > yDown){ bitmapTop = bitmapTop+10; bitmapBottom = bitmapBottom+10; } else if(y < yDown){ bitmapTop = bitmapTop-10; bitmapBottom = bitmapBottom-10; } } rectBitmap.top = bitmapTop; rectBitmap.left = bitmapLeft; rectBitmap.bottom = bitmapBottom; rectBitmap.right = bitmapRight; } @Override public void onDraw(Canvas canvas){ if(rect.bottom != display.getHeight()){ setCanvasSize(display.getWidth(), display.getHeight()); } updateBitmapDim(); canvas.drawBitmap(bG, rectBitmap, rect, paint); } public boolean onTouchEvent(MotionEvent event){ int action = event.getAction(); x = (int) event.getX(); y = (int) event.getY(); switch(action){ case(MotionEvent.ACTION_DOWN): xDown = (int) event.getX(); yDown = (int) event.getY(); movement = true; case(MotionEvent.ACTION_UP): movement = false; } return true; } @Override public void surfaceChanged(SurfaceHolder arg0, int arg1, int arg2, int arg3) { // TODO Auto-generated method stub } public void surfaceCreated(SurfaceHolder holder) { thread.setRunning(true); thread.start(); } @Override public void surfaceDestroyed(SurfaceHolder holder) { // simply copied from sample application LunarLander: // we have to tell thread to shut down & wait for it to finish, or else // it might touch the Surface after we return and explode boolean retry = true; thread.setRunning(false); while (retry) { try { thread.join(); retry = false; } catch (InterruptedException e) { // we will try it again and again... } } } } }