Writing Styles and Themes on Android

Using reusable styles and themes to modify an Android application’s look is really easy and helps to not violate thy DRY (don’t repeat yourself) principle by typing styles in every single UI element again and again. In the following tutorial we’re going to write and apply some simple styles and a finally theme to a simple Android application. Prerequisites The following environment is needed to follow this tutorial … Java Development Kit 6 Android SDK An AVM with at least Android 2.2 / API Version 8 I recommend using Eclipse with the ADT Plugin installed ...

December 3, 2011 · 3 min · 634 words · Micha Kops

Android Widget Tutorial: Creating a screen-lock Widget in a few steps

In today’s Android tutorial we’re going to take a look at Android’s Widget API and how to make a widget interact with a service using intents. Figure 1. hasCode Android Widget Tutorial Logo We’re going to create a fully functional application that allows us to enable or disable our smartphone’s screen lock settings using a widget that can be placed on our home screen. Finally, I am going to show how to use a smartphone to test and debug our application and connect it to the IDE. ...

October 6, 2011 · 10 min · 2082 words · Micha Kops