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.mseer.testservice; import java.io.IOException; import java.io.InputStream; import android.app.Service; import android.content.Context; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.os.Handler; import android.os.IBinder; import android.os.Message; import android.util.Log; public class MyService extends Service{ public IBinder onBind(Intent intent) { return null; } protected static Service sv; protected static InputStream bg01, bg02, bg03, bg04, bg05, bg06; protected static int index=0; protected static final int SECONDPASSED = 0x1234; protected boolean running = false; Thread counterThread = null; static Handler myWallpaperHandler = new Handler(){ public void handleMessage(Message msg) { switch (msg.what) { case MyService.SECONDPASSED: updateWallpaper(); break; } super.handleMessage(msg); } }; protected static void updateWallpaper(){ try { if(index==0){ sv.setWallpaper(bg01); }else if(index==1){ sv.setWallpaper(bg02); }else if(index==2){ sv.setWallpaper(bg03); }else if(index==3){ sv.setWallpaper(bg04); }else if(index==4){ sv.setWallpaper(bg05); }else if(index==5){ sv.setWallpaper(bg06); } index++; if(index>5){ index = 0; } } catch (IOException e) { e.printStackTrace(); } } public void onCreate(){ sv = this; super.onCreate(); running = true; bg01 = sv.getResources().openRawResource(R.drawable.night01w); bg02 = sv.getResources().openRawResource(R.drawable.night02w); bg03 = sv.getResources().openRawResource(R.drawable.night03w); bg04 = sv.getResources().openRawResource(R.drawable.night04w); bg05 = sv.getResources().openRawResource(R.drawable.night05w); bg06 = sv.getResources().openRawResource(R.drawable.night06w); this.counterThread = new Thread(new secondCountDownRunner()); this.counterThread.start(); } public void onDestroy() { super.onDestroy(); running = false; counterThread.interrupt(); } } class secondCountDownRunner implements Runnable{ public void run() { while(!Thread.currentThread().isInterrupted()){ Message m = new Message(); m.what = MyService.SECONDPASSED; MyService.myWallpaperHandler.sendMessage(m); try { Thread.sleep(2000); } catch (InterruptedException e) { Thread.currentThread().interrupt(); } } } }