Home » Android

Android

Android SQLite Example

In this example we are going to see how yo interact with an SQLite database with your Android Application. SQLite  is an Open Source Database for structued data in relational databases. It is embeded in Android, to you don’t have to do anything special to set up or administer an SQLite server (e.g like in a Linux box). Android offers a ...

Read More »

Android ExpandableListview Example

With this tutorial we are going to see how to use Android ExpandableListView. As you might have imagined, ExpandableListView is quite like a ListView but it has 2 levels, one can say. It’s sort of like a menu with sub menus. This is from the official documentation: “A view that shows items in a vertically scrolling two-level list. This differs from the ListView by allowing ...

Read More »

Android SharedPreferences Example

In this example we are going to see how to use Android SharedPreferences. You can permanently store preferences using SharedPreferences with the form of a pair : key and a value. Basically there are some ways you can store data in Android : Shared Preferences: Prrimitive data storage (boolean Strings, ints etc..). Internal Storage: Device memory storage. External Storage: Store public data on storage ...

Read More »

Android Thread Example

In this example we are going to see how to use Android Thread. As we  read from the official documentation: A Thread is a concurrent unit of execution. It has its own call stack for methods being invoked, their arguments and local variables. Each virtual machine instance has at least one main Thread running when it is started; typically, there are several others for housekeeping. ...

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 HorizontalScrollView Example

In this example we are going to see how to use HorizontalScrollView in an Android Application. The HorizontalScrollView is like a ScrollView but with horizontal orientation. It is very useful because it is not very usefull to scoll up and down the whole screen of you application. You can use a small portions of the screen as HorizontalScrollView with scrolling ...

Read More »

Android OnClickListener Example

In this post, we feature a comprehensive Android OnClickListener Example. We are going to see how to work with OnClickListener in an Android Application. You may use OnClickListener when you want your compoments to react when users click on them. Most (if not all) of the GUI Android components can be bundled with an OnClickListener, so you can see that ...

Read More »

Android Scrollview Example

In this example we are going to see how to use Android ScrollView component. This is a layout container that can host multiple component and views and can is scrollable. For this tutorial, we will use the following tools in a Windows 64-bit platform: JDK 1.7 Eclipse 4.2 Juno Android SDK 4.2   1. Create a new Android Project Open Eclipse ...

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 MultiTouch ListView Example

In this example we are going to see how to create MutliTouch ListView in an Android Application. In this example, every Item in the list is clickable, so you can bundle it with a ClickListener,  and it contains two buttons to edit and delete items. For this tutorial, we will use the following tools in a Windows 64-bit platform: JDK ...

Read More »