Archives for Android - Page 13

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
Android

Learn to create screen wireframes for Android Lollipop with Pencil

Prototype GUI is always an important part of an Android project. It lets to have a better idea about rendering of an application. Among available tools, Pencil is a great solution. Pencil is an open source prototyping GUI solution based on XUL Runner and so multiplatform ! Source code can be found on Github here : At this stage, you…
Continue Reading
Android

Create a real time line graph in Android with AChartEngine

AChartEngine is one of the oldest library available to create graph on Android. Solution is functional but lacks of some fresh in front of new libraries that implement Material Design specifications. However, it’s interesting to study it to learn how to create real time line graph with it. First, we need to get AChartEngine. It can be downloaded as a…
Continue Reading
Android

Create a real time line graph in Android with GraphView

In Android applications, there are a lot of use cases in which you must create graphs. Fortunately, a lot of open source libraries exist letting you to easily create line graphs, bar graphs or other style of graphs. These libraries have the main advantages to be designed entirely for Android and so, they are optimized. Among the main libraries, we're…
Continue Reading
Android

Schedule tasks on Android Lollipop with JobScheduler API

Before Android Lollipop , there was just one solution to schedule tasks on Android. You must use the AlarmManager system service acquired thanks to the following method call : (AlarmManager) getSystemService(); The AlarmManager was functional but had some major disadvantages. First, it doesn’t consider if the device is connected to a power plug, idle or connected to a unmetered network.…
Continue Reading