O'Reilly logo

Xamarin Studio for Android Programming: A C# Cookbook by Mathieu Nayrolles

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Debugging on a phone

The emulators, which are provided by the Android development team and integrated in Xamarin, are great pieces of technology but do have some limitations. For example, in the previous chapter, we saw that they don't support most of the hardware interactions, such as NFC, GPS, or Accelerometer. Consequently, some of your applications will have to be developed and tested on real devices.

Getting ready

To follow this recipe you will, obviously, need an Android phone and a USB cable to connect it to your PC/MAC.

How to do it...

To get started with debugging on a phone, you'll need to perform the following steps:

  1. Enable the Debugging on Device feature of your Phone. On Android 4.0 and 4.1, it's under Setting | Developer Options | USB ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required