Android Webservice example

In this post, we will be discussing how to invoke web service from Android application. When web methods are invoked from inside Android application, the application gets back the data from the server in the form of XML. The response which has been received can be parsed and rendered in the application as needed.

What is the importance of using Web Service in Android applications?

If you are looking for tutorial on consuming the web service which you created using Java or Dot Net, please follow below links:

How to call Java web service in android

How to call web service in android

We are gonna use SOAP protocol to send and retrieve information in order to invoke web methods.

What is SOAP?

SOAP is a protocol specification for exchanging structured information in the implementation of Web Services in computer networks. It relies on Extensible Markup Language (XML) for its message format, and usually relies on other Application Layer protocols, most notably Hypertext Transfer Protocol (HTTP) and Simple Mail Transfer Protocol (SMTP), for message negotiation and transmission.

Read More

Android WebView Layout

What is Android layout?

Layout denotes the architecture of the application, where and how the controls should be organized in the UI.It defines the layout structure and holds all the elements that appear to the user.

Android allows us to create layouts for the applications using simple XML file and those layouts must be placed in /res/layout folder.

We can declare the layout in two ways and here we will discuss first way of doing it:

  1. Declare UI elements in XML
  2. Create UI elements at runtime using Java.
Read More

Android localization at runtime

In the previous post, the application we created identifies the locale before application is loaded. But in some situation where we need to change the language of the application at runtime or on the go according to the user’s need. You might have seen some application which has dialog or menu which list the languages supported by the application.

On selecting the language from the list, entire application will be applied with the locale/language selected which happens at runtime.

Follow the previous post example, where we are going to add spinner control to display the list of languages and add logic in activity class to handle the locale changes.
Either you can proceed with the below listings, or you can directly download code.

Read More

Android localization example

To build multilingual Android apps we need to put bit effort in translating the content of the App and putting them in the appropriate folders.

Once we provide the translation, Android OS will choose the resources that match user’s locale (English/Hindi/Tamil/Korean). If the application is available in several languages, Android will select the language that the device uses.

In this tutorial, we’ll cover:

  1. Application localization process
  2. Translating strings
  3. Localizing images
  4. Running and testing the localized application
  5. Localization checklist
Read More

Android screen crack prank

In this post, we are going to develop an application, its kinda game which can be used to prank your friends. :). Yes, you want to fool your friends with a simple android application, just go through the post to develop one for you :). I would like to name this application – ‘Screen crack prank’.

Application’s theme:

Let your friends play the game on your Android phone and see how the screen cracks and the screen goes black and also vibrates. Your friends will believe they broke your phone.

You must have already seen such applications in Google play but creating one such application is really fun!!

Read More

Eclipse shortcuts for Android developers

As we all know Eclipse is the widely used IDE for developing Android applications. Some of us don’t know how to use it efficiently(Me too), so I decided to write a post on the most frequently used shortcuts here.


I just remember the quote “When it comes to success, there are some shortcuts” when I think about the word ‘Shortcut’  😛

You can grab a copy of ‘Eclipse shortcuts’ from here

Read More

How to hide title bar and status bar in Android application


This post is going to be very short one and here we will discuss about how to hide title bar and status bar in Android application.

If you look at Gaming applications like ‘Cut the rope’, ‘Angry birds’ and more in your android device,  applications are displayed in full screen view which covers entire area of the display to provide more user experience.

We will develop a sample application which has no title bar and no status bar.

Read More

Android vibrate example

In this post, we will learn about Android vibrate service which is available from version 1.0 of Android, the SDK has included necessary features in vibrate service that gives developers to use it creatively.

Why vibrate service?

Vibrate service improves the user experience by providing haptic feedback to users or to interact with users even when phone volume is low or set to zero.

We can make android phone to vibrate in following three ways:

  1. Vibrate for a given length of time
  2. Vibrate on a given pattern
  3. Vibrate repeatedly until cancelled
Read More
Join now to get more access to our Android Tutorials

Join now to get more access to our Android Tutorials

Once you Join, you will receive Mail containing latest Android Tutorials once a month !!

I promise I wont spam you !!

You have Successfully Subscribed!

Pin It on Pinterest