This example must be run on actual hardware (not an emulator) as this contains hardware specific code. (This was tested on a Nexus S phone)