Home » Tag Archives: android

Tag Archives: android

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 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 Custom Font TextView

In Android Development we do not have the option to use any other custom font in our default TextView in an xml layout file, except from the default Roboto font. And the choices that Android gives us are limited, by letting us set only normal, sans, serif or monospace fonts, which are usually not enough, especially when we want to ...

Read More »

Android Navigation Drawer Example

The navigation drawer is a panel that displays the app’s main navigation options on the left edge of the screen. It is hidden most of the time, but is revealed when the user swipes a finger from the left edge of the screen or, while at the top level of the app, the user touches the app icon in the ...

Read More »

OpenGL ES Texture Mapping

With this example we are going to demonstrate how to perform OpenGL ES Texture mapping (OpenGL ES on Android). We shall create a square and we will apply a texture onto it. A texture is nothing more than a bitmap image. This method is very useful when creating 2D games and is the preferred way to display images using OpenGL. ...

Read More »

Displaying Graphical Elements with OpenGL ES

In this example we shall show you how to display graphical elements with OpenGL ES on Android. First off, 3D graphics happens in the Cartesian Coordinate System. That means that the coordinate system used has three dimensions. X, Y and Z. Traditionally X goes from left to right, Y from bottom to top, and Z from me into the screen ...

Read More »

OpenGL ES rendering example

This is an example of how to perform OpenGL ES rendering on Android. OpenGL for Embedded Systems (OpenGL ES) is a subset of the OpenGL 3D graphics application programming interface (API) designed for embedded systems such as mobile phones, PDAs, and video game consoles. OpenGL ES rendering can be done following these steps: Create a class that extends Activity Create ...

Read More »

Measuring Frames Per Second (FPS)

This is an example of how to measure frames per second (FPS) in an Android application or game. Measuring FPS in an Android game is very important because it allows you to gauge how smooth the game is. In general, the more FPS the better user experience. For a better understanding, make sure to check the Android Game Loop example ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns