PostgreSQL - Setting up - Linux Ubuntu

PostgreSQL is one of the most known and used SQL server. We’re going to see how to install it on a Linux opearting system, to be precise on Linux Ubuntu. First of all For this tutorial, our Linux distribution will be Ubuntu 22.04: https://ubuntu.com/ Then PostgreSQL 14.5: https://www.postgresql.org/ As a bonus we’ll use pgAdmin 4 v6.15 to manage PostgreSQL as a GUI: https://www.pgadmin.org/ Let’s get started To install PostgreSQL on Ubuntu, just follow the documentation. ...

January 7, 2023

Android - API - Creating a Spinner with colors as choices

With Android we haven’t a classic ComboBox like in other frameworks but we have instead a Spinner. Actually it’s exactly the same and only the name differs. In this Android Spinner tutorial we’re going to create our own cutom Spinner by replacing classic texts with squares of color. First of all The minimum SDK for this tutorial is the API 14 (Android 4.0 or also known as IceCreamSandwich). Spinner, Object class and 2’s complement will be see in this example. ...

March 22, 2020

Android - API - Creating a GridView

The GridView is a bit like the ListView’s sibling. A lot of concepts are shared with those similar components. We’re going to see how to create an easy GridView with almost the same code as the ListView tutorial but with some differences. Let’s get started. First of all The GridView is often used to displays images as in a portfolio. But in our tutorial we will use Strings and Integers because they are easier to use. ...

December 17, 2017

Android - API - Creating a ListView

The ListView is certainly one of the most used components by Android programmers in their applications. Why? Because the concept is easy to understand and the result looks nice. But a lot of tutorials are made with complicated ListView examples. In this tutorial we are going to see how to use it in the most easy way. First of all We will display 2 ListViews, one with Strings and the other one with Integers. ...

December 16, 2017

Android - API - Classic methods during a life cycle with one activity

In this tutorial we will see how and when Activity main methods are called during a classic life cycle. Only one activity will be used in this example in order to have something easy to understand. Let’s see that. First of all During this video, I launched the application then I clicked on the home button to pause it. After I clicked the application again from the list and it came back with the methods called. ...

August 21, 2016

Android - API - Life cycle of 2 activities with the Intent class

One important step in Android development is to understand how to deal with many activities. This is what we are going to see in this Activity tutorial with an example of the famous Intent class. Stop talking, let’s get coded. First of all In the video you can see, in orange, the MainActivity and, in green, the Activity_2. The title also changes with the corresponding activity. To go to the second activity, I push the Button “GO TO ACTIVITY 2”. ...

August 21, 2016

Android - API - Getting the current method name with StackTraceElement

Always dreamed to see the stack without your debugger? Maybe this tutorial will help you with the StackTraceElement Java class. Of course we are going to use an Android application to see all that on our screen! Let’s get started. First of all I’ve created a while loop in order to use every element in the stack until the last one. A special classe has been created (BadprogHelper) in order to use a specific method to have a delay between each element. ...

August 20, 2016

Android - Tips'n Tricks - Hiding/Showing the Notification bar

Maybe you don’t know that but it’s possible to remove the Notification bar programmatically. It’s quite useful if you don’t really need it for your custom application. It takes a little bit portion of your screen but why let it? Let’s see that in this Notification bar tutorial. First of all We’re going to create a Button to hide and display the NotificationBar. Each time you click the Button, the state changes by toggling the features of this Button. ...

August 16, 2016

Android - Android Studio - Generating an unsigned release .apk

If you come from the Eclipse world, you should be lost because it’s not very clear how to generate a release build version of an .apk file. In this Android Studio tutorial, we are thus going to see how to resolve this release build generation. Generating the debug build .apk First of all, click > Build > Make Project. Then > Run > Run nameOfYourApp. Your project should be built and of course in the debug version. ...

June 15, 2015

Android - SQLite - Basics

A classic way to deal with database, with Android, it’s to use the SQLite classes. What’s unique in SQLite is that you don’t need a server where running your database. Indeed, everything is already inside your Android application. And of course impossible to another application to read this database. Let’s have a look in this Android SQLite tutorial to learn basics with an example. A bit like an Hello World SQLite. ...

July 17, 2013