Netbeans Android - compilation and testing on a real device (Unix, OSX)

I read a few questions about testing Android applications on a device.
I know that you can download APKs to web storage, allow unsigned applications and run them. I read some solutions using Eclipse. I read about installing apk via adb But nothing about Netbeans.

So Is there an automatic solution for OSX / UNIX and Netbeans?

Please note: I am currently using OSX 1.7 and Netbeans 7.0 with the NBAndroid plugin, but the question is related to Unix / OSX and Netbeans with 6.5 (or lower if it supports).

+4
source share
1 answer

I will answer myself, because no one answered, and I guessed him:

  • Change the Android manifest because of this guide: http://developer.android.com/guide/developing/device.html

    <application android:debuggable="true" ... >

  • run ./adb start-server or ddms from your sdk for Android to enable adb server

  • On your device, set USB Debugging mode to turn on and connect your device to the computer via USB

  • run ./adb devices from the /platform-tools folder

    to see if your device is turned on correctly and visible to adb
  • run the project in Netbeans (F6) and select your device in the upper half of the window (in the running devices section)

  • your application must work correctly on your real device, to see the logs, you can use

    • ./platform-tools/adb logcat debug console messages
    • ./tools/ddms gui for debugging messages
+9
source

All Articles