Android

Get Android device rotation angles with accelerometer and geomagnetic sensors

In first versions of Android, rotation angles could be got by using a sensor with as type. But, since Android , this method is deprecated. However, a lot of applications and developers still use this way ! The following tutorial aims to show you how to get rotation angles (azimuth, pitch and roll) in the recommend way by using accelerometer…
Continue Reading
Android

Create and Start a Background Service in Android

In Android applications, like in all mobile applications, responsiveness is often the key to offer great user experience. It’s essential to avoid blocking user interface. In some cases, you will need to process long-running operations. To void affecting user interface’s responsiveness, you will need to use background service. Deriving from IntentService class, a background service is a straightforward structure for…
Continue Reading
Devices

Welcome to the latest Android One baby : Lava Pixel V1 for India !

Google continues its efforts with Android One to deliver high quality device to low price. Android One family welcomes a new baby called Lava Pixel V1 available for India. This new device comes with Android Lollipop, the latest and the fastest version of Android. Google ensures also that devices part of Android One program will get automatically new version just…
Continue Reading
Java

Easiest way to create a built-in Java HTTP Server

Introduced in JDK , package enables implementation of embedded HTTP servers. Oracle official Javadoc tells the following : "Provides a simple high-level HTTP server API, which can be used to build embedded HTTP servers". However, it’s important to consider that * packages are not part of the supported, public interface and may even disappear in upcoming Java releases. There is…
Continue Reading
Android

ADB Survival Guide for Android

Android Debug Brigde (ADB) is a command line tool, coming with Android SDK provided by Google, that lets developers to communicate with an emulator or a connected Android device directly from the command line. To find adb tool, you must go on <android_sdk_path>/platform-tools directory on your computer. In this article, you’re going to learn the handy adb commands which are…
Continue Reading
Android

Learn to play music with Real Piano Music HD

Google Play Store has a lof ot app to play musics but some are better than others. Real Piano Music HD can be considered as one of the best application to learn to play music on your Android device. Freely available on Google Play Store here : ;rdid= , Real Music Piano HD comes with an elegant and intuitive interface offering…
Continue Reading
Android

Learn how to make a Compass application for Android

Smartphones have a lot of sensors letting to developers to take profit in their applications. Make a Compass application for Android is a great way to understand how they work on Android OS. To make that Compass application, we're going to use mainly accelerometer sensor. Location service will be also used to fix compass data and also to display GPS…
Continue Reading
Android

Learn to create a Pie Chart in Android with MPAndroidChart

In the serie exploring MPAndroidChart, today you're going to learn how to create a pie chart in Android. A Youtube demo video how you steps by steps how to create a pie chart in Android with MPAndroidChart : Note that MPAndroidChart is open source and available here on Github :  . Source code for MainActivity is the following : package ;…
Continue Reading
Android

Create a frame animation in XML on Android

Android offers to developers a great Animation API that lets them to create easily frame animation in XML or programmatically. In the following tutorial, you’re going to learn how to create a frame animation in XML. For this tutorial, we’re going to use a monster character that we want to animate. Get the frames of the monster’s animation The following…
Continue Reading
Android

Create a real time line graph in Android with MPAndroidChart

In the serie "create a real time line graph on Android", MPAndroidChart seems to be the best solution. Library is designed for Android 5 Lollipop and rendering is great. MPAndroidChart is open source an available here on Github :  . Developer is very active and answers quickly to issues created by users. The following video shows how to create a…
Continue Reading