Tuesday, November 08, 2011

Testing Mono for Android Applications on an Android Device

Please note that the following steps were performed on an HTC smartphone running Android version 2.1.

Setting Up the Android Device

  1. Ensure the Android device is not yet plugged into the PC.
  2. Go the the desktop/home of the Android device.
  3. Go to Settings.
  4. Click on 'Applications'.
  5. Click on 'Development'.
  6. Check the following checkboxes:  'USB debugging', 'Stay awake', and 'Allow mock locations'.
Setting Up the Android SDK

  1. Visit the following URL to download and install the appropriate USB driver for ADB for the device: http://developer.android.com/sdk/oem-usb.html

Setting Up the Visual Studio Mono for Android Application

  1. Open up Visual Studio 2010.
  2. Open the Mono for Android application.
  3. Open up the 'AndroidManifest.xml' file.
  4. Add the following XML attribute to the 'application' element:

  5. Press F5 to debug and deploy the application.
  6. Select the Android device from the 'Running devices' list.
  7. Click on OK.

1 comment:

Android app developer said...

This is one of the unique post.This is one of the challenging post.Nice to read about your post.