• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps How do you put your programs onto the phone?

I just finished my 'Hello World' program in Eclipse and it works fine in the Emulator so now I'd like to test it on my phone, but I'm not sure how to do that.

Thanks for any help.
 
To install apps from another source than Android Market you need to check: Settings -> Applications -> Unknown sources. And then you must copy the apk file on to your phone. You can use a USB cable or use a ftp app.
 
To test your own apps on your phone, first make sure debug mode is enabled (Settings > Development > USB Debugging) and then connect the phone to your computer. Note that you may need to install USB drivers for your phone, I know I did. If you run "adb devices" it should now list your phone as one. Then when you hit run or debug, it should either give you the option to send it to your device, or send it automatically (depends on your run config settings).

If eclipse gives you errors about not connecting to the device, I would try a "adb kill-server" followed by a "adb devices" (you could do start-server too, I just like seeing if the computer sees my phone). It's the biggest pain in the butt sometimes.
 
First, the most simple way, is use your phone exactly like an Emulator, here are instructions for setting up eclipse to run as such

then make sure usb debugging is turned on, as mentioned as above, along with allow installation of non-market applications.

A quick note, in Eclipse it may be beneficial to have "manual" selected for the default launch device, so that you have to choose which device you want to launch the application in, this can be found by clicking on the down arrow next to run, then click run configurations, then click on "target", and switch it from Auto to Manual
 
Back
Top Bottom