Home » Author Archives: Ilias Tsagklis (page 4)

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.

Displaying Images with Android

With this example we are going to demonstrate how to display Images with Android using canvas. In short, to create and use a Sprite Animation you should: copy the image you want to display in one of the /res/drawable* resource folders of the Android Project lock the canvas for exclusive pixel editing model the image with a bitmap use canvas.drawBitmap to ...

Read More »

Google Maps example

With this example we are going to demonstrate how to use Google maps on Android. Note that in order to use Google Maps, the Google APIs have to be present in your SDK. In case they are not already installed, you will have to manually install them. This is accomplished by using the Android SDK and AVD Manager. So, in ...

Read More »

JSON parsing with Gson

This is an example of JSON parsing on Android with Gson. Google Gson is a Java library that can be used to convert Java Objects into their JSON representation. In order to parse JSON with Gson, follow these steps: Create a class that extends Activity (here called JsonParsingActivity) Create an instance of the Gson class Use the DefaultHttpClient to retrieve ...

Read More »

Gallery View without pictures

This is an example of Galery view on Android without any pictures. Gallery View is one of Android’s widgets. It provides a list of scrollables elements, much like the normal ListView or even a HorizontalScrollView. In order to use Gallery View with custom elements follow these steps: Create a Layout xml file with describing the layout of the Gallery elements Add a Gallery ...

Read More »

Customized dialog

In this tutorial we are going to see how can we use Customized dialogs for user interaction in Android. The easiest way to do that is to use the Dialog class. The basic steps to create a Customized dialog are: Create a new xml Layout file that describes the content of the Dialog box and how it will be rendered use ...

Read More »

Customized list view

This is an example of how to create a Customized ListView on on Android. The normal ListView component of Android is very useful. But we have the ability to further customize it which makes it more flexible. In order to create your own, customized ListView, follow these steps: Create a new XML  file that describes the layout of each row Create ...

Read More »

XML parsing with XML Pull

With this tutorial we are going to show you how to perform XML parsing using XML Pull in Android. There are two popular methods in XML parsing: SAX and DOM. But a new method that gains more and more attention is the “pull parsing” method. The Android SDK includes support for XML Pull parsing via the XML Pull package The ...

Read More »

Using the HTTP API

In this example we shall show you how to use an HTTP Service from an HTTP Service provider with Android. This functionality is particularly useful when you want to display information to your Application, coming from another Web Site or generally from another service. The provider will give you a key that grants access to the services. You can then send HTTP ...

Read More »

Main Activity UI example

One of the most basic steps you have to take when developing an Android Application is the design and the specifications of the main Activity (and any activity) of your App. Android API gives all the basic tools to make that action fairly easy. The basic layout of an Activity is described in a Layout XML file. In this XML ...

Read More »

Proximity Alerts Example

One of the most used features in smartphones is the GPS devices that are embedded in the phones. Additionally more and more Applications are developed and launched that take advantage of the geographical positioning functionality. You have probably already heard about Location Based Services. In this tutorial we are going to create an Application that notifies the user when he/she ...

Read More »