Category Archives: Android tutorials

Android tutorials, step by step description for beginner, for experts

Share project on GitHub

When we are working on a simple project it is easy to remember what were our last changes. But tracking the changes in all of our files after a while takes even longer timer and harder to follow. To track the revisions over time, we can use version control.

What is “version control”, and why should you care? Version control is a system that records changes to a file or set of files over time so that we can recall specific versions later.

We not only want to record changes, but also who made the changes, and when. Managing revisions at this level requires a Version Control System (VCS).

Continue reading Share project on GitHub

Follow and like us:

Android Pong

In this tutorial we will create the world oldest game, the Pong, but in our case we give it the name Android Pong. We will use the Android Canvas to draw first a black background rectangle and this will give space for our Android Pong game.

Android Pong is a very simple game, as you can see on the picture. It will have at the left top corner a text. This will show the current points. Next to the text will be the start position of our ball. The player shape is a rectangle at the bottom of the playground.

Continue reading Android Pong

Follow and like us:

Draw text on Bitmap

In this tutorial we will learn how to draw text on picture, what we chose before. We can set the size, the position, the color and many other things of the text.

First we have to choose an image and load it into the ImageView. Then we will specify the text with a TextView. The last step is to push the “Draw text on bitmap” Button and the text will be visible on the bitmap in the ImageView.

Let’s start the implementation 🙂

Continue reading Draw text on Bitmap

Follow and like us:

Draw a Lamp on Canvas

In this tutorial we will learn a little bit about Canvas. We will draw a lamp on the screen and for this we will have a button which can turn on and turn off our lamp.

Continue reading Draw a Lamp on Canvas

Follow and like us:

Measure Your Distance on Map

In this tutorial we will learn how to implement Google Maps in our application, how to measure the distance and how to visualize it on the map.

With the Maps SDK for Android, we can add maps based on Google Maps data to our application.

Continue reading Measure Your Distance on Map

Follow and like us:

Timer Application with Handler

In this tutorial we will learn how to make your own Timer with Start, Pause, Resume and Stop statements. We will use here a Handler, what allows us to send and process message and runnable objects.

To create a timer application, we have more options. For example we can use a Timer or a CountDownTimer.

Continue reading Timer Application with Handler

Follow and like us: