How to handle Button click: Java code vs XML onClick

One of the most common task during UI design is handling the user clicks, usually on buttons, so it is necessary to handle button click. Android provides two alternative ways to handle user click:...

Passing data between activities

One of the most important aspect in developing android application is passing data between activities. Usually an Android app is made by several activities that work together. These activities are pieces of code independent...

Multi touch in Android : onTouchEvent example

In this post i want to analyse how to handle multi touch in Android. Reading some posts around the net i found that are a bit confusing and not clear particularly when it comes...

How to get confirmation when user leaves an application

Most of the time we have the need the control if an user leaves our application. It can be the case when the user leaves the application before doing some operations (let’s say save information...

How to support multiple screen in Android

One important aspect to consider is how to support multiple screen in Android. As we know, Android is an operating system installed on many devices. One of the most important consequence is that the...