Home » Android

Android

Android Volley Example

1. Introduction The Android Volley library is an Android library which enables developers building application which will make requests to some sort of API Server more manageable and fast in terms of overall application performance. This library achieves this by means of two main constructs that the library makes available, namely the RequestQueue and the RequestObject. Together these two constructs make it possible to ...

Read More »

Android Toast vs Snackbar Example

1. Introduction In Android, one can use the Android Toast or the Android Snackbar to display feedback or action messages to users of an application. The Android Toast is mainly for Platform oriented messages although the Android Snackbar could be also be used for these requirements. The added advantage of using an Android Toast instead of an Android Snackbar is ...

Read More »

Android Snackbar Example

1. Introduction In this example, we will be implementing a basic Android SnackBar Activity, which will be able to display a long waiting SnackBar, a short waiting SnackBar, and an interactive SnackBar. To Trigger these different functionalities we will create 3 separate buttons for each one of the SnackBar scenarios. Further, when each one of these buttons will be clicked they ...

Read More »

Android TabLayout Example

1. Introduction In this example, we will be going through the process of creating a basic user interface using the tab layout constructs available on the Android platform. In Android, the TabLayout is a construct for better organizing a user interface. It does so by making the user interface more organized and less cluttered. This example will also explain the ...

Read More »

Android Bluetooth Connection Example

The Android platform includes support for the Bluetooth network stack, which allows a device to wirelessly exchange data with other Bluetooth devices. The Android Bluetooth APIs provide us access to the Bluetooth functionality in order to wirelessly connect to other Bluetooth devices, enabling point-to-point and multipoint wireless features. So, if we want to exchange data between different devices through our ...

Read More »

Android StackView Example

The Honeycomb Android version, introduced some interesting widgets with collections. One of them is the Android StackView, a stacked card view where the front view-item can be flipped to give room for the item after it. The StackView collection may be found in several widgets, because of its view behaviour. Generally, StackView is an AdapterView thus working with StackView is ...

Read More »

Android Http Get and Post Example with OkHttp

In this example, we are going to learn how to execute simple Http Get and Post requests from our Android Application. We are going to make use of the OkHTTP 3.0 library, where OkHTTP is an Open Source project designed to be an efficient HTTP client. The usage of this library is very simple and if you are using Gradle ...

Read More »

Android Tutorial For Beginners With Examples

There are lots of reasons why more and more people are interested in learing how to be able to develop Android applications. Unarguably, Android is the most popular mobile operating system, with almost 2 billion devices activated and it offers a unified approach to application development for mobile devices. That means, that developers need only develop for Android, and their ...

Read More »

Android Activity Transition Example

The transitions between different Android Activites consist of animations that are used when we enter and exit a specific Activity. In this example, we are going to define simple transition animations in XML resource files and use them as simple transitions between the Android Activities of our example. All we have to do is to override the Activity.overridePendingTransition(). Let’s take ...

Read More »

Android Multitouch Example

A multi-touch gesture is when multiple pointers (fingers) touch the screen at the same time. The basic class for support touch and multitouch in Android is the MotionEvent class. Motion events describe actions in a set of axis values. The actions are the states that occur when a finger is going down or up. The axis values describe the position ...

Read More »