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 ch.egsolutions.updatingui; import java.util.Random; import android.app.Activity; import android.os.AsyncTask; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.TextView; public class Demo extends Activity { TextView loadingTv; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); loadingTv = (TextView) findViewById(R.id.loadingTv); Button start = (Button) findViewById(R.id.startButton); start.setOnClickListener(new OnClickListener() { @Override public void onClick(View arg0) { LoadingStuffTask task = new LoadingStuffTask(); task.execute("Process started!"); // the string will be passed to the doInBackground // if necessary call task.getStatus() to know the current task // status } }); } private class LoadingStuffTask extends AsyncTask { // String,String,String are relatively the // doInBackground params Type // onProgressUpdate params Type // onPostExecure params Type //-- of course you can specify any type you need... @Override protected String doInBackground(String... params) { publishProgress("\n" + params[0]); // string passed to the onProgressUpdate Random rand = new Random(); publishProgress("Loading module 1 ..."); while (rand.nextInt(1000000) != 2) { } // simulating // extreme // calculations publishProgress("Loading module 2 ..."); while (rand.nextInt(1000000) != 1) { } return "Finish !"; // string passed to the onPostExecute } @Override protected void onProgressUpdate(String... values) { loadingTv.append(values[0] + "\n"); } @Override protected void onPostExecute(String result) { loadingTv.append(result + "\n"); } } } //there is another override you can do: onPreExecute. //It will run on the UI thread, and lets you do some ui tweaks (if needed) before //the doInBackground is called