Home » Android » Page 16

Android

Customized dialog

In this tutorial we are going to see how can we use Customized dialogs for user interaction in Android. The easiest way to do that is to use the Dialog class. The basic steps to create a Customized dialog are: Create a new xml Layout file that describes the content of the Dialog box and how it will be rendered use ...

Read More »

Using options menus

In this example we shall show you how to create and display option menus in your Android Application. It is very important to use option menus because they enhance the user experience and improve user interaction. To create Option Menus in Android one should perform the following steps: Override the onCreateOptionsMenu(Menu menu) method of the Activity class menu.add method to ...

Read More »

Customized list view

This is an example of how to create a Customized ListView on on Android. The normal ListView component of Android is very useful. But we have the ability to further customize it which makes it more flexible. In order to create your own, customized ListView, follow these steps: Create a new XML  file that describes the layout of each row Create ...

Read More »

XML Binding with Simple Framework

In this tutorial we are going to see how can we Simple Framewrok for XML Binding in Android. The basic steps to create a Customized dialog are: Create or download the XML formated file you want to bind it to Android. Create the appropriate classes to map appropriately the XML elements and its corresponding attributes Use the appropriate annotations, e.g. ...

Read More »

XML parsing with XML Pull

With this tutorial we are going to show you how to perform XML parsing using XML Pull in Android. There are two popular methods in XML parsing: SAX and DOM. But a new method that gains more and more attention is the “pull parsing” method. The Android SDK includes support for XML Pull parsing via the XML Pull package The ...

Read More »

Parsing XML with SAX

In this tutorial we are going to see how can we parse an XML file using the SAX parsing method. The SAX specification reads through the XML Document and uses events and callback handlers to perform the parsing. It’s a bit more challenging than other methods, DOM for example, but it’s flexible and much more memory efficient. The basic steps ...

Read More »

Using the HTTP API

In this example we shall show you how to use an HTTP Service from an HTTP Service provider with Android. This functionality is particularly useful when you want to display information to your Application, coming from another Web Site or generally from another service. The provider will give you a key that grants access to the services. You can then send HTTP ...

Read More »

Launching new activities with intents

In Android you will frequently come up will a need to launch a new Activity from inside your own Application. This is important when you want your Application to have multiple Activities. It is also very useful when you want to use an existing Activity in your system. New Activities are usually launched using Intents.           ...

Read More »

Main Activity UI example

One of the most basic steps you have to take when developing an Android Application is the design and the specifications of the main Activity (and any activity) of your App. Android API gives all the basic tools to make that action fairly easy. The basic layout of an Activity is described in a Layout XML file. In this XML ...

Read More »

Android Text-To-Speech Application

In this tutorial we shall show you how to use the TextToSpeech class to convert Text-to-Speech in Android. The idea is straightforward. We want to type text in an text area and then press button to transform it to speech. You can actually listen to it when you launch the built in application of Android.           ...

Read More »