Tag Archives: thread

469 views

JS multi threading thread javascript example

For all browsers e.g. old IE 11 ….   <script>       var mbThreadOneRunning = false; var mbThreadOneEnded = false;   var mbThreadTwoRunning = false; var mbThreadTwoEnded = false;   // you can create more than one Thread // … Continue reading

Posted in Javascript css html | Tagged , | Comments Off on JS multi threading thread javascript example
30,488 views

AsyncTask Example Android with ProgressBar

MainActivity.java package com.asynctaskexample;   import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader;   import org.apache.http.HttpResponse; import org.apache.http.client.methods.HttpGet; import org.apache.http.impl.client.DefaultHttpClient;   import android.os.AsyncTask; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.view.View; import android.widget.ProgressBar; import android.widget.TextView;   public class MainActivity extends Activity { private … Continue reading

Posted in Android Examples Code | Tagged | Comments Off on AsyncTask Example Android with ProgressBar
46,720 views

How update View TextView with timer Android runnable example

Update TextView by runnable. Handler, runnable, timer Android example. public class TimerActivity extends Activity { TextView hTextView; Button hButton, hButtonStop; private Handler mHandler = new Handler(); private int nCounter = 0; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); hTextView … Continue reading

Posted in Android Examples Code | Tagged , , , , | Comments Off on How update View TextView with timer Android runnable example