Archives for Android - Page 13

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
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
Android

Learn to make a frame animation with a character sprite in Android

Android provides a convenient way to make frame animation via XML or programmatically. API is very clear and powerful. In the following example, we’re going to animate a character sprite programmatically via this API. Character sprite bitmap First, we need to get a character sprite bitmap. Here, we choose the classic grossini dance : Each frame has the following dimensions…
Continue Reading
Android

Install Samsung Galaxy S6 skin in your Android Emulator

When you make Android apps, you need to test your app on different devices. Buy all these devices is expensive and impossible for Indie Developers. So, best solution is to use Android Virtual Device to create virtual devices that have identical specifications to physical devices you want to test. If you use Eclipse or Android Studio as IDE to make…
Continue Reading