Home » Android » core » os


Android Bundle Example

As we have seen in our previous example Android StartActivityForResult Example, in Android, the Intent describes the activity to be executed. An Intent contains certain header, action and type, but also can contain data. The data of the Intent is described as a Bundle. The Bundle object is used to pass data between activities. This data can be retrieved from ...

Read More »

Android Handler Example

In this example we are going to see how to use Android Handler. As we  read from the official documentation: a Handler allows you to send and process Message and Runnable objects associated with a thread’s MessageQueue. Each Handler instance is associated with a single thread and that thread’s message queue. When you create a new Handler, it is bound to the thread / ...

Read More »

Android Asynctask Example

In this tutorial we are going to see how to use Android AsyncTask. As we read from the Android Documentation : AsyncTask enables proper and easy use of the UI thread. This class allows to perform background operations and publish results on the UI thread without having to manipulate threads and/or handlers. AsyncTask is designed to be a helper class ...

Read More »

Android Timer Example

In this example we are going to create a simple Android Timer application. We are going to use some very basic ideas and tools, like Handler, that you can use in many cases in your Applications. We will use the Handler for the interesting part of this example, which is the timer value update. For this tutorial, we will use ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns