Tag Archives: Android

Introducing Robotium – A Testing Framework for Android

Android robot logo.

Image via Wikipedia

Robotium is an open source testing framework for Android applications. It makes it easy to write complex black-box test cases. Test driven development is a methology where tests are written before the actual application.

1. Write a testcase
2. Watch it failing
3. Write the actual source code in you application which enables the test to pass
4. Watch the test passing
5. Go back to step 1

The following video gives you an introduction into Robotium:

I will definitely use Robotium for my future Android projects. It is really worth having a look at it.

There is another interersting video:

Enhanced by Zemanta

Google launched In-app Billing on Android Market

Google Android In-App Billing

Google Android In-App Billing

Google yesterday launched In-app Billing on the Android Market. This feature enables developers to publish apps that use in-app Billing and users can make purchages from within the Android apps.

Google writes:

Android Market In-app Billing is an Android Market service that lets you sell digital content in your applications. You can use the service to sell a wide range of content, including downloadable content such as media files or photos, and virtual content such as game levels or potions. [Source]

In-app Billing enables developers to bring a lot of new apps on the market. I will definitely have a look at it more deeply.

[via Android Developers]

Enhanced by Zemanta

HowTo set up the Android SDK on Ubuntu for HTC Phones

Image representing HTC as depicted in CrunchBase

Image via CrunchBase

In this post I will explain how I set up the Android SDK on Ubuntu for my HTC Desire.

I first followed the steps for Ubuntu as described in Setting up a Device for Development:

With an Android-powered device, you can develop and debug your Android applications just as you would on the emulator. Before you can start, there are just a few things to do:

  1. Declare your application as “debuggable” in your Android Manifest.In Eclipse, you can do this from the Application tab when viewing the Manifest (on the right side, set Debuggable to true). Otherwise, in the AndroidManifest.xml file, add android:debuggable="true" to the <application> element.
  2. Turn on “USB Debugging” on your device.On the device, go to the home screen, press MENU, select ApplicationsDevelopment, then enable USB debugging.
  3. Setup your system to detect your device.
    • If you’re developing on Ubuntu Linux, you need to add a rules file that contains a USB configuration for each type of device you want to use for development. Each device manufacturer uses a different vendor ID. The example rules files below show how to add an entry for a single vendor ID (the HTC vendor ID). In order to support more devices, you will need additional lines of the same format that provide a different value for the SYSFS{idVendor} property. For other IDs, see the table of USB Vendor IDs, below.
      1. Log in as root and create this file: /etc/udev/rules.d/51-android.rules.For Gusty/Hardy/Maverick Meerkat, edit the file to read:
        SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"

        For Dapper, edit the file to read:
        SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0bb4", MODE="0666"

      2. Now execute:
        chmod a+r /etc/udev/rules.d/51-android.rules

You can verify that your device is connected by executing adb devices from your SDK platform-tools/ directory. If connected, you’ll see the device name listed as a “device.”

When I executed adb devices the name of my HTC Desire just looked like “??????????”. After executing reload udev then disconnecting and connecting my phone again, everything looked fine. Now I could see the name of my HTC Desire after running adb devices.

Maybe this post helps you in setting up your Android SDK on Ubuntu. If it does please drop me a comment below.

(Thanks to the post of it-slav.net)

Enhanced by Zemanta

[video] – Developing Android REST Client Applications

Virgil Dobjanschi demonstrates in this Google I/O session patterns for developing RESTful applications on the Android platform.

(via Google I/O 2010)

Related articles

Enhanced by Zemanta

Google released Android 2.3 Gingerbread

Yesterday Google released a new version of Android 2.3 called Gingerbread. The following video explains some of the new features:

I am looking forward to updating my HTC Desire when it receives the update.

Update: Apart from this information ReadWriteWeb found some interesting new features as stated on their weblog:

Yesterday, Google launched a new version of the Android operating system, Android 2.3, code-named “Gingerbread.” Since then, developers have been scouring through the software development kit (SDK) to see what’s new. A few have found some interesting items – including hints at possible video chat in Google’s GTalk app, references to a Playstation controller and even a fabulous “Easter egg” painting depicting an Android surrounded by zombies.

Enhanced by Zemanta