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.helloandroid; import java.text.SimpleDateFormat; import java.util.Date; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.os.Handler; import android.service.wallpaper.WallpaperService; import android.view.SurfaceHolder; public class HelloAndroid extends WallpaperService { private final Handler handler = new Handler(); @Override public void onCreate() { super.onCreate(); } @Override public void onDestroy() { super.onDestroy(); } @Override public Engine onCreateEngine() { return new ClockEngine(); } class ClockEngine extends Engine { private final Paint mPaint = new Paint(); private boolean mVisible; private final Runnable writeTimeRunnable = new Runnable() { public void run() { drawFrame(); } }; ClockEngine() { final Paint paint = mPaint; paint.setColor(Color.YELLOW); paint.setAntiAlias(true); paint.setStrokeWidth(2); paint.setStrokeCap(Paint.Cap.ROUND); paint.setStyle(Paint.Style.STROKE); paint.setTextSize(80); } @Override public void onCreate(SurfaceHolder surfaceHolder) { super.onCreate(surfaceHolder); } @Override public void onSurfaceCreated(SurfaceHolder holder) { super.onSurfaceCreated(holder); } @Override public void onSurfaceChanged(SurfaceHolder holder, int format, int width, int height) { super.onSurfaceChanged(holder, format, width, height); drawFrame(); } @Override public void onOffsetsChanged(float xOffset, float yOffset, float xStep, float yStep, int xPixels, int yPixels) { drawFrame(); } @Override public void onDestroy() { super.onDestroy(); handler.removeCallbacks(writeTimeRunnable); } @Override public void onSurfaceDestroyed(SurfaceHolder holder) { super.onSurfaceDestroyed(holder); mVisible = false; handler.removeCallbacks(writeTimeRunnable); } @Override public void onVisibilityChanged(boolean visible) { mVisible = visible; if (visible) { drawFrame(); } else { handler.removeCallbacks(writeTimeRunnable); } } public void drawFrame() { final SurfaceHolder holder = getSurfaceHolder(); Canvas c = null; try { c = holder.lockCanvas(); if (c != null) { // draw something writeTime(c); } } finally { if (c != null) holder.unlockCanvasAndPost(c); } // Reschedule the next redraw handler.removeCallbacks(writeTimeRunnable); if (mVisible) { handler.postDelayed(writeTimeRunnable, 1000); } } public void writeTime(Canvas c) { String hour=new SimpleDateFormat("H").format(new Date()); String min=new SimpleDateFormat("mm").format(new Date()); String sec=new SimpleDateFormat("ss").format(new Date()); c.drawText(hour + ":" + min + ":" + sec, 150, 150, mPaint); } } }