Home » Archives for Byron Kiourtzoglou » Page 4

Author Archives: Byron Kiourtzoglou

Byron is a master software engineer working in the IT and Telecom domains. He is an applications developer in a wide variety of applications/services. He is currently acting as the team leader and technical architect for a proprietary service creation and integration platform for both the IT and Telecom industries in addition to a in-house big data real-time analytics solution. He is always fascinated by SOA, middleware services and mobile development. Byron is co-founder and Executive Editor at Java Code Geeks.

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 »

Basic game loop

This is an example of how to create a basic game loop with Android. Before following this basic game loop example, you might wish to check out our Android Game Development Tutorials series. To create a basic game loop in Android one should perform the following steps: Create an Android activity (here called DroidzActivity) Implement the onCreate method Create a ...

Read More »

Particle Explosion example

In this tutorial we are going to see how can we create a Particle Explosion effect in our Android Application. An explosion is just a number of particles (pixels or small shapes in this occasion…) that move in random positions and with random speeds around the screen originated from the same source. In our tutorial we will assume that our ...

Read More »

Moving Images on Screen

In this example we shall show you how to create and display moving Images on the screen in your Android Application. For example let’s have a moving image that will move through the screen and it bounces back when it hits the edge of the screen. This is an example of a very basic animation that you might want to ...

Read More »

HTTP Camera live preview example

With this example we are going to demonstrate how to create Live Camera preview in Android. The Android SDK includes a Camera class that is used to set image capture settings, start/stop preview, snap pictures, and retrieve frames for encoding for video. It is a handy abstraction of the real hardware device What we are essentially going to do is setup a web ...

Read More »

Animations examples

In this example we shall show you how to programmatically set animations to a layout . To achieve this one should perform the following steps: Create an XML file and place it in a new folder inside the “res” folder of the Android Project Use an  AccelerateInterpolator that dictates the way the animation changes its state Use  the AnimationUtils to load the animation ...

Read More »

Prefernces and PreferenceActivity example

In this example we shall show you how to use Preferences with Android. This functionality is used for storing user’s preferences and using them for example when the application starts. For using the Preferences framework the following steps must be followed: Create a class that extends PreferenceActivity (here called QuickPrefsActivity) Use the addPreferencesFromResource method in order to read the config ...

Read More »

Creating an AppWidget for the home screen

In this tutorial we are going to see how can you create an AppWidget of your Android Application for the home screen of the device. Since version 1.5, the Android SDK includes the AppWidget framework, a framework that allows developers to write “widgets” that people can drop onto their home screen and interact with. The use of widgets is very ...

Read More »

Using options menus

In this example we shall show you how to create and display option menus in your Android Application. It is very important to use option menus because they enhance the user experience and improve user interaction. To create Option Menus in Android one should perform the following steps: Override the onCreateOptionsMenu(Menu menu) method of the Activity class menu.add method to ...

Read More »

XML Binding with Simple Framework

In this tutorial we are going to see how can we Simple Framewrok for XML Binding in Android. The basic steps to create a Customized dialog are: Create or download the XML formated file you want to bind it to Android. Create the appropriate classes to map appropriately the XML elements and its corresponding attributes Use the appropriate annotations, e.g. ...

Read More »