Running on a Real Device

The best way to test an Android app is to run it on a real device. Any commercial Android device should work when connected to your workstation, but you may need to do a little work to set it up. If you have a Mac, you don't need to do anything except plug it in using the USB cable. Then, on the device itself, choose Settings Image Applications Image Development and enable USB debugging. On Linux, you probably need to create or modify this file: /etc/udev/rules.d/51-android.rules. We put a copy of this file on our web site with the ...

Get Pro Android 4 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.