Mac Android Development – Publish to Device

Having problems getting your newly developed Android app to run on your device using a Mac? Well this is the missing puzzle that not many people know. You have to change your application setting in your Android phone first in order for your Android SKD to find the device USB location (if your on a PC, you’ll have to run a second USB support application). Here’s how:
  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 theAndroidManifest.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. Open the terminal and run the “adb” tool assuming it’s in the same location:
    /Applications/android-sdk-mac_86/platform-tools/adb devices


Leave a Reply

Your email address will not be published. Required fields are marked *