views:

151

answers:

4

I made an Android Hello world app and I'm trying to load it onto my HTC Incredible. I believe it has 2.2 (how do I confirm that?)

Anyway, Eclipse gives me this message and then brings up the window in the screenshot below.

Automatic Target Mode: Unable to detect device compatibility. Please select a target device.

I'm on Ubuntu 64bit if that matters. I did turn on USB debugging on the phone. I told the phone to connect as a disk drive.

Any ideas how to get my app onto the phone?

Update: Do I need to perform these steps since I'm on Ubuntu? I doesn't mention what to do for Ubuntu 8.10 though.

alt text

+3  A: 

You need to run the adb server in superuser mode (i.e. sudo adb start-server).

EboMike
I didn't start anything like this. Isn't that something Eclipse should be handling? If not at what point in my workflow do I run this command? I'm guessing I plug my phone in, and then I run this command?
Greg
It is something that Eclipse does, but doesn't do right on Linux, so you'll have to take care of that yourself. You can do it at any time, before or after you plugged your phone in. Kill the existing server if you have already started Eclipse (`adb kill-server`), then restart it as root (`sudo adb start-server`).
EboMike
+1  A: 

Try what EboMike said, run sudu adb start-server.

To answer your question "how do I confirm my phone is V2.2?" Press your phone's menu key, then settings, about phone, software information. The Android version is the number you're looking for. This shouldn't be important though for your hello world example.

Also, it's not important that you have the phone connect as a disk drive; this causes the SD card to be dismounted. It will actually cause problems if you run or debug an application that tries to access the SD card. You can just select charge only and use ADB/Eclipse's DDMS perspective to move files to and from the phone.

glenviewjeff
You actually cant dbg while mounted
w-ll
A: 

The easiest way to this: Go to www.dropbox.com and sign up for a free account. Copy your .apk file from your project's /bin directory to your Dropbox. Download and install the free Dropbox app from the Android Market. Navigate to your .apk file on the Dropbox app and click it to download and install on your phone.

ShadowGod
Yeah, that's totally easier than hitting "run" in eclipse...
Falmarri
Yes, yes it is. If it was as easy as hitting "Run" in Eclipse then there wouldn't be a problem in the first place. I don't see you trying to answer the original question.
ShadowGod
A: 

Ok, it turns out I did have to follow all the instructions from this page. (The sudo stuff metnioned in other answers above didn't help.)

Here are the exact commands I ran for Ubuntu 8.10

Greg