Posts Tagged ‘ ui thread ’

AsyncTask Android Example

October 15, 2012
By
Count Down Timer in Action

AsyncTask is a helper abstract class used to execute short operations ( few seconds ) in a non-ui thread. In other words, AsyncTask is a helper class used to create asynchronous tasks. An asynchronous task is defined by three generic types called Params, Progress and Result. Params: Params is used to send arguments to...

Read more »

Android JSON Parsing with JSONObject and loading to ListView – Example

September 10, 2012
By
Listview with data parsed from JSON data

In this article, we will create an Android application which will parse JSON data stored a local String variable and load to a ListView widget. The parsing process will be done in a non-ui thread using AsyncTask, one of the simplest method provided by Android to create multiple threads in an application. This application...

Read more »

Android Xml parsing with XmlPullParser and loading to ListView – Example

September 6, 2012
By
Displaying Parsed XML data in a listview

According to Android documentation, XmlPullParser is the efficient and maintainable way to parse XML in Android. In this article, we will parse  xml data using XmlPullParser and load that data into a listview. Since xml parsing is a complex and time consuming ( depends on the xml data )  process, we are doing it...

Read more »

Showing Splash Screen in Full Screen Mode using CountDownTimer in Android

September 4, 2012
By
Welcome Splash Screen in Action

In this article, we will create an Android application containing a splash screen. This splash screen will be run in full screen mode. It is resistant to screen rotation while splash screen is up. This splash screen is implemented using a simple Android API called CountDownTimer. This application is developed in Eclipse ( 4.2.0)...

Read more »

Showing ProgressDialog while a work in progress ( background process ) using AsyncTask in Android

September 1, 2012
By
ProgressDialog in Action

In this article, we will see how to show a ProgressDialog while a work is progressing in a non-ui thread ( background ). Here the background process is executing in an AsyncTask object. This application is developed in Eclipse ( 4.2.0 ) with ADT plugin ( 20.0.3 ) and Android SDK plugin (R20.0.3 )....

Read more »

Updating ProgressBar status from a non-ui thread ( working thread ) using AsyncTask in Android

September 1, 2012
By
Screenshot of the application in execution

In the article titled “Updating ProgressBar status from a non-ui thread ( working thread ) using Handler in Android“, we have seen , how to manipulate¬† a UI thread component from a non-UI thread using Handler. In this article, we will see, how to update the progress bar in a UI thread from a...

Read more »

Updating ProgressBar status from a non-ui thread ( working thread ) using Handler in Android

August 31, 2012
By
progressbar_demo_on_state_featured

UI thread is the thread in which the components of an application will be executed by default. But there are some tasks which are usually executed in background ( eg : downloading files ). These background tasks are run with the help of threads in Android. These threads are called non-ui threads. An important...

Read more »

Be friend at g+

Subscribe for Lastest Updates

FBFPowered by ®Google Feedburner