Tutorials

How to listen for Phone Events in Android

How to listen for Phone Events in Android

If we want our application to deal with telephony services on the device then we can do so with the help android.telephony package. In this article, I will show you how to listen for different phone events and take action based upon them. In other words we can make our application react to any phone event such as when the phone rings, signal strength changes, etc. Also, the access to this telephony information of device is permission protected and our application should have appropriate permissions in order to receive device call change updates. So, let's get started!

Read More

How to create Status Bar Notification in Android

How to create Status Bar Notification in Android

A status bar notification is a nice way to alert the user about some update from your application, when running in background, specially when you require a response from the user for the same. It adds an icon to the system's status bar along with an optional ticker-text message and an expanded message in the Notifications window. When the user selects the expanded notification message, Android fires an Intent that is defined by the notification which is usually used to launch an Activity. In this article, I will show you how we can implement this notification system in our application.

Read More

How to create Time Picker dialog for selecting time in Android

How to create Time Picker dialog for selecting time in Android

Sometimes we may require the user to set time in our application. While doing so instead of asking the user to enter the time data in raw form, we can provide him with a beautiful GUI to input the data.

Android comes equipped with a widget named TimePicker which we can integrate in our application to provide this functionality to the end users. It has an elegant look and design. So, lets get started.

Read More

How to create Date Picker dialog for selecting a date in Android

How to create Date Picker dialog for selecting a date in Android

Whenever the user has to input a date, its always a good idea to assist him/her with a widget which allows the user to select a particular day, month and year.

By default Android provides a widget named DatePicker which can be incoported in your application to provide this functionality to the end users. It has an elegant look and design. So, we will use this widget here.

Read More

How to create an Auto Complete textbox in Android

How to create an Auto Complete textbox in Android

Auto complete is a must have feature in applications that require user to type-in commonly used words or phrases.  As soon as user starts typing in a word or phrase, the application shows a list containing the probable words or phrases that the user wants to type in without the user actually typing it in completely. This feature makes application more user friendly and improves user experience. We will create a textbox widget which supports auto complete feature.

Read More

How to implement DRAG AND DROP feature using HTML5

HTML5

 There is no doubt that HTML5 is making life easy and fast for web developers. With its new attributes for elements, HTML5 is a boon of the decade. In this tutorial we will learn about one of the most useful feature of HTML5, that is drag and drop method and how to implement it.

Read More

How to use external fonts in Android

Android Font

In this tutorial we will show how you can use external fonts in your Android applications instead of regular available fonts.

The first step is that you need to download a free font (.ttf file) from internet which you want to use. It's easy. Go to google.com and search for free fonts and download the one which you want to use. Here in this tutorial we will be using two fonts - RockFont font and FeastOfFlesh font as shown below.

Read More

How to create a Dialog box in Android - Part 2

Android Dialog Box

This is the second part of the How to a create a Dialog Box in Android tutorial. Follow this link - How to create a Dialog Box - Part 1, if you haven't read the first part and have directly landed here.

In this tutorial we will discuss the remaining two types of dialog boxes -

Read More

  • A dialog box containing a list
  • A dialog box containing checkboxes

How to create a Dialog box in Android - Part 1

Android Dialog Box

Hi again!  We are back with another tutorial on Android notifications. Make sure you go through the tutorial on Toast Notification before reading on.

In Android you can use a dialog box with one, two, or three buttons or none at all. You can also have a list of selectable items that consists of checkboxes or radio buttons.

For creating these dialog boxes we will be using AlertDialog which is an extension of Dialog class from Android API library. In this tutorial we will be creating four different types of dialog boxes -

Read More

  • An alert box with a single button
  • A dialog box with two buttons
  • A dialog box containing a list
  • A dialog box containing checkboxes

Create Toast Notification in Android

Android Notification

Notifications are generally used to make user aware about an event that has occurred in your application. Once notified the notification may give an option to interact with itself or not. There are three types of notifications in Android.

Read More

  • Toast Notifications
  • Status Bar Notifications
  • Dialog Notifications

How to use Sensor Simulator in Android SDK Emulator

Android Sensor

In this post we will simulate various sensors such as accelerometer, compass, orientation and temperature sensor using SensorSimulator in Android SDK Emulator.

The OpenIntents SensorSimulator lets you simulate sensor data with the mouse in real time, where the behavior can be customized through various settings. It currently supports four sensors only but more are being developed by their team.

First you need to download the latest stable version of SensorSimulator. Go to their download page and then search for the latest sensorsimulator-x.x.x.zip file and download it. Right now the they have released the beta version and you can download it from here

Read More

How to UNINSTALL .APK files on ANDROID Windows SDK EMULATOR-

Android APK

To Uninstall a .apk file is a lot easier than installing it. Open your Android SDK emulator and follow these instruction to Uninstall the application installed on your Android emulator. Let us suppose that we have already installed a Sudoku application, as given in installation tutorial, and we want to uninstall it. It can be done in the following methods:-

Read More

How to INSTALL .APK files on ANDROID Windows SDK EMULATOR

Android APK

In this tutorial we are going to learn how to install any given Android application in Android emulator using [dot]APK ".apkfiles.

[Update] Steps For Windows7 (API v 2.2, v2.3)

Follow the instructions with SCREENSHOTS of the Android emulator. All you need is just the Android SDK platform with JDK or JRE (software development kit, with emulator) and .apk files. There is no need to install Eclipse or Netbeans SDK, to work with APK files [wiki]. An .apk file extension denotes an Android Package (APK) file. This file format, a variant of the JAR format, is used for the distribution and installation of bundled components onto the Android mobile device platform.

Read More