I want some simple example on thread creation and invoking of threads in android.
This is a nice tutorial:
Or this for the UI thread:
Or here a very practical one:
and another one about procceses and threads
One of Androids powerful feature is the AsyncTask class.
To work with it, you have to first extend it and override
doInBackground automatically executes on a worker thread, and you can add some
listeners on the UI Thread to get notified about status update, those functions are
You can find a example here.
Refer to below post for other alternatives: