Android Thread Example : Simplest code

This article will describe Android thread example:-

Multi threading, Processes and Threads in Android application development:

In Android every programm (application) have a main thread. We can’t do long processing in main thread. Long processes like communicate with Internet, parse long data or communicate with database etc.

Also for best ferformance we use background processes (threads).

In below I am showing you simplest code of Android background thread / process.

Android thread example

Thread thread=new Thread(){
	public void run() {
		// Background work should be here

For more examples about threads / background processes / AsyncTask follow the links

AsyncTask Example

Network On Main Thread Exception


Leave a comment

Your email address will not be published. Required fields are marked *