API Archive

Learn to draw an Analog Clock on Android with the Canvas 2D API

To learn to use the Canvas 2D API, a good exercise is to draw an Analog Clock on Android. In this tutorial, you are going to discover how to create this kind of Clock and you will see some basics like creating a custom view and draw on a Canvas. Note that you can enjoy

Jury rules in Google’s favor over Oracle : Android makes “fair use” of Java APIs

At the end of a two-week trial, a federal jury concluded that Android, the Google’s Mobile Operating System, makes “fair use” of Java APIs. Android doesn’t infringe Oracle-owned copyrights. Indeed, the Google’s re-implementation of 37 Java APIs is protected by “fair use” doctrine. After three days of deliberations, the jury unanimously answered “yes” in Google’s

Learn to make faces recognition programmatically in Android

For Android applications that offer to users possibilities to manage photos or images, it can be very useful to add a faces recognition feature. To achieve that, you have basically two options : first is to find a faces detection algorithm and to implement it. It can be a very good exercise but when you

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

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

Schedule tasks on Android Lollipop with JobScheduler API

Before Android Lollipop 5.0, 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(Context.ALARM_SERVICE); 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

Android 5.1 SDK is up ! What’s new for developers ?

Android Team has just announced Android 5.1, updated version of Android 5.0 Lollipop platform. Like often, this new version comes with a better stability, bug fixes and obviously better performance. This Lollipop update brings to developers Android 5.1 SDK with API Level 22. This new SDK version supports new platform and will let to developers