roger wrote:HI Shawn ,
Here is the log from Eclipse:
12-05 10:01:16.470: I/Process(11972): Sending signal. PID: 11972 SIG: 9
12-05 10:01:46.916: D/LeJOSDroid(12136): about to add LEJOS listener
12-05 10:01:46.916: E/LeJOSDroid NXJ log:(12136): Protocols = 2
12-05 10:01:46.923: E/LeJOSDroid NXJ log:(12136): Search Param = NXT
12-05 10:01:46.923: E/LeJOSDroid NXJ log:(12136): No NXTs found in cache file
12-05 10:01:46.923: E/LeJOSDroid NXJ log:(12136): Searching for NXT using Bluetooth inquiry
12-05 10:01:46.923: E/LeJOSDroid NXJ log:(12136): Inquiry found 0 NXTs
12-05 10:01:46.923: E/LeJOSDroid NXJ log:(12136): Saving cached names
12-05 10:01:46.939: E/LeJOSDroid NXJ log:(12136): Failed to find any NXTs
12-05 10:01:46.939: E/LeJOSDroid NXJ log:(12136): Failed to connect to any NXT
12-05 10:01:46.939: W/dalvikvm(12136): threadid=9: thread exiting with uncaught exception (group=0x4001e560)
Nice. Yeah that is the adb logcat output. Eclipse picks it up too but I wasn't sure how to set it up -- easily it seems.
It looks like your are trying to run tachoCount.
AFAICT, leJOSDroid is working ok and the failure is at the leJOS code of
lejos.pc.comm.NXTConnector.connectTo(String deviceURL, int mode)
The exact code that gets called is:
conn.connectTo("btspp://NXT", NXTComm.LCP);
It's just crashing because the connection comes back null and I didn't check for that.
roger wrote:I am using a Motorola Droid 3
The apk was compiled with SDK 8 but your handset is SDK 9. It should run but perhaps rebuilding it will do the trick.
Make sure to remove the apk via your handset. It's been signed and any new apk you build will have a different signature so you can't just update it from eclipse.