Home » Author Archives: Ilias Tsagklis (page 3)

Author Archives: Ilias Tsagklis

Ilias Tsagklis
Ilias is a software developer turned online entrepreneur. He is co-founder and Executive Editor at Java Code Geeks.

Android Rating Bar Example

In Android it’s very easy to accept user rating using a Rating Bar. In this tutorial we are going to see how to set up and display a Rating Bar with Stars. When the user slides over the  bar, the rating goes up or down by one Star and the selected/deselected Stars change color automatically as does the value of the rating.  ...

Read More »

Android Checkbox Example

One of the easiest and most common ways to accept user input in an Android Application is the Checkbox component. In this tutorial we are going to see how to set up and display a checkbox list with some options for the user. Furthermore, we are going to use a button that when it’s pressed, a message will be displayed reflecting the ...

Read More »

Android Textbox Example

In your Android application, you may want to accept user input. There are many ways you can do that and one of the most basics is the textbox. In Android you can use the EditText class in order to create a textbox on your screen in which the user will write text. Then, we have to bundle this textbox with ...

Read More »

Android Button Example

One of the most basic elements in any Graphical User Interface is the button. So in this post we’ll talk about creating a button and adding it to our application. Furthermore, we’ll show how to bundle a specific button with an action, which will occur every time the user presses the button.                For ...

Read More »

Download images from a website using Jsoup

In this example we will use an HTML Parser, Jsoup, in order to download images from a website. jsoup is a Java library for working with real-world HTML. It provides a very convenient API for extracting and manipulating data, using the best of DOM, CSS, and jquery-like methods. jsoup implements the WHATWG HTML5 specification, and parses HTML to the same ...

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 »

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 »

Game loop example

In this example we shall show you how to create a game loop in Android. Before starting, you should check our Basic Game loop example in order to understand the basic concepts. To create a game loop in Android one should perform the following steps: Create a thread that will be used as the game loop Implement the run() method ...

Read More »

Using bitmap fonts

With this example we are going to demonstrate how to use bitmap fonts in an Android Application. Android is running on a wide variety of devices with lots of different screen sizes and resolutions. So bitmap fonts can help you address the problem of using a consistent font face across different devices. For this tutorial we are going to use ...

Read More »

Sprite Animation in Android

With this example we are going to demonstrate how to  create and display a Sprite animation in an Android Application. A Sprite animation is a moving image animation that you will have seen in a gif image. For example imagine a human walking.               To create this kind of animation in Android is simple. ...

Read More »