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(){ @Override public void run() { // Background work should be here } }; thread.start();
For more examples about threads / background processes / AsyncTask follow the links
Network On Main Thread Exception