This tutorial demonstrates how to use a custom view class (that is a class derived from View or its subclass) in an XML layout. This demonstration assumes basic familiarity with Android SDK and its XML layouting mechanism, the code is written in Android SDK 2.1. Creating The Custom View Class To begin with, let’s create […]

This tutorial assumes basic familiarity with Android SDK and its XML layouting mechanism. The example is written in Android SDK 2.1. Background Layouting in Android is usually done in an XML file, via the layout editor or by hand.  Below is an example of a layout done in the Eclipse layout editor. Almost every Android […]

The Android SDK comes with several very nice examples.  Here’s a short guide on how to compile and run them.  This tutorial is intended for Eclipse begginners who are already familiar with programming. This assumes you have Android SDK and Eclipse already set-up, following this previous tutorial. Start Eclipse.  If you see the welcome screen, […]

This tutorial is designed specifically for those wanting to use Eclipse Ganymede (although Eclipse Gallileo is similar, this post won’t deal with Gallileo installation). Note: much of this installation process are described in http://developer.android.com/sdk/eclipse-adt.html and for experienced programmer, that document might be enough.   This tutorial is more detailed but if you encounter any problem, you […]

There are times when you might want to capture the screen for demonstration or tutorial purposes.  The easiest way is using the ddms application included in the Android SDK (http://developer.android.com/sdk/index.html).  This example is using Android SDK 2. Connect your phone with the computer Goto the folder where the Android SDK is, (and under tools folder) […]