Home » Android

Android

Android Drag and Drop Tutorial

This post is going to cover implementing Drag and Drop in an Android application. (I am currently using version 4.0 of the sdk, but I originally wrote the code in this series with the 3.1 version.) Why Use Drag and Drop When I started working on my Android application, which involves moving a chess piece around a chess board, I ...

Read More »

Android Game Development – OpenGL Texture Mapping

In the previous two articles (article 1 and article 2) I have tried to introduce OpenGL ES on android. Now let’s take it further and build on them. In this article we will create a billboard (which is a square) and we will apply a texture onto it. A texture is nothing more than a bitmap image. When we work ...

Read More »

Android Game Development – Switching from Canvas to OpenGL ES

It is about time we delve into the graphical capabilities of the Android platform. Android supports the OpenGL ES API. Needless to say that offloading graphics handling to a dedicated GPU is way more optimal than doing it in the CPU. Most android devices have such a dedicated GPU. OpenGL is an API for writing 2D and 3D graphics that ...

Read More »

Android Tutorial: Gestures in your app

Gestures in mobile apps are pretty common place these days. Almost anyone with smart phone experience knows that pinching will usually zoom in on an image. Now, using Gestures in Android is a snap. OnTouch All gestures are really handled with one event on an Activity. OnTouch is called anytime a View is touched on the screen. It provides all ...

Read More »

Android Game Development – Using Bitmap Fonts

Android is an OS running on many types of devices with different screen sizes. Because of that it is pretty difficult to address font related issues regarding both size and appearance on these platforms. To use a consistent font face across devices I have used bitmap fonts. That is, each character is represented by a bitmap. We can create an ...

Read More »

Android: Gallery View without Pictures

Android’s Gallery View is one of the first widgets Android created. It’s so old now that some people even find it hard to find. The Gallery view provides a list of scrollable objects much like the standard ListView. The one main benefit of using the Gallery View is its snap-to-position feature. When the user stops scrolling, the images that end ...

Read More »