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.threading; import android.app.Activity; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.ProgressBar; import android.widget.TextView; public class ThreadingActivity extends Activity implements OnClickListener, Runnable { Thread pipelineThread; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); TextView textOutput = (TextView)findViewById(R.id.textOutput); Button buttonPush = (Button)findViewById(R.id.buttonPush); // Get button from xml ProgressBar progressBar = (ProgressBar) findViewById(R.id.progressBar); buttonPush.setOnClickListener(this); } public void onClick(View v) { pipelineThread = new Thread(this) { /* * 1. uncomment this and "Runnable" from above * 2. comment lines 68-80 */ // public void run(){ // final String TAG = "pipelineThread"; // try { // Log.i(TAG, "before sleep (" + this.getName() + ")"); // Thread.sleep(1500); //just to show you that it works // Log.i(TAG, "after sleep (" + this.getName() + ")"); // } catch (Exception e) { // // @todo: Show error message // } // showResults.sendEmptyMessage(0); // } }; pipelineThread.start(); } private Handler showResults = new Handler() { public static final String TAG = "handler_showResults"; @Override public void handleMessage(Message msg) { Log.i(TAG, "received message: "+ (Object)msg.obj + " (" + this.getLooper().getThread().getName() + ")"); super.handleMessage(msg); } }; /* * ThreadingActivity implements Runnable */ @Override public void run() { // TODO Auto-generated method stub final String TAG = "pipelineThread"; try { Log.i(TAG, "before sleep (" + pipelineThread.getName() + ")"); Thread.sleep(1500); //just to show you that it works Log.i(TAG, "after sleep (" + pipelineThread.getName() + ")"); } catch (Exception e) { // @todo: Show error message } showResults.sendEmptyMessage(0); } }