use thread in Android

view story

http://stackoverflow.com – i want to use thread in this program, because it uses UI thread in current state. so other process can use UI thread while UI thread pass control to new created thread how to use thread structure in this code. public class Ping extends Activity implements OnClickListener { Button pingButton; TextView pingText; EditText pingCommand; String address; // EditText pingPacketNumber, pingPacketSize; @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentVi (HowTos)