How to load my app from Eclipse to my Android phone instead of AVD

后端 未结 16 1873
礼貌的吻别
礼貌的吻别 2020-12-07 14:01

I\'m quite new to Android and have been using an AVD to debug my app so far. However, I want to start checking the media options and therfore need to start using my Android

相关标签:
16条回答
  • 2020-12-07 14:46

    Yes! You can Debug Android Application While you are developing them follow these steps.. Make sure that you have PC suite of the mobile manufacturer. For Example:if you are using samsung you should have samsung kies

    1.Enable USB debugging on your device:Settings > Applications > Development > USB debugging 2.Enable Unknownresources:Settings>Unknowresoures
    3.Connect your device to PC
    4.Select your Application Right click it: RunAS>Run configurations>Choose Device>Target Select your device Run.

    You can also without using debugging cable.For that you need to install Airdroid in your device.After installing enter the link in your browser and Drag and Drop .apk file.

    Happy Coding!

    0 讨论(0)
  • 2020-12-07 14:49

    The USB drivers in \extras\google\usb_driver didn't work for me.

    However the official drivers from Samsung did: http://developer.samsung.com/android/tools-sdks/Samsung-Andorid-USB-Driver-for-Windows

    Note: I'm using a Samsung Galaxy S2 with Android 4.0 on Windows 7 64bit

    0 讨论(0)
  • 2020-12-07 14:50

    First you need to enable USB debugging on your phone, then connect it to your computer via USB. Then eclipse should automatically start debugging on your phone instead of the AVD.

    0 讨论(0)
  • 2020-12-07 14:52

    In Eclipse:

    • goto run menu -> run configuration.
    • right click on android application on the right side and click new.
    • fill the corresponding details like project name under the android tab.
    • then under the target tab.
    • select 'launch on all compatible devices and then select active devices from the drop down list'.
    • save the configuration and run it by either clicking run on the 'run' button on the bottom right side of the window or close the window and run again
    0 讨论(0)
  • 2020-12-07 14:52

    Step by step:

    1. Connect your phone to computer via USB
    2. Enable USB debugging on your phone: Settings -> Applications -> Development -> USB debugging
    3. Change Run configuration in your Eclipse project: right click -> Run As -> Run Configurations. In the Target tab choose Always prompt to pick device (or Manual). Then Apply, Run.

    In the new window you should see your connected phone.

    0 讨论(0)
  • 2020-12-07 14:52

    First you need to set your device to debugging mode. On Android 4.X that means as described in another answer in another question:

    Open up your device’s “Settings”. This can be done by pressing the Menu button while on your home screen and tapping “System settings”

    Now scroll to the bottom and tap “About phone” or “About tablet”.

    At the “About” screen, scroll to the bottom and tap on “Build number” seven times. [Note this is no joke]

    Make sure you tap seven times. If you see a “Not need, you are already a developer!” message pop up, then you know you have done it correctly.

    Done! By tapping on “Build number” seven times, you have unlocked USB debugging mode on Android 4.2 and higher. You can now enable/disable it whenever you desire by going to “Settings” -> “Developer Options” -> “Debugging” ->” USB debugging”.

    The next step is to connect your device to your computer via the USB cable.

    The next step is to install a USB driver for it. On the official website you find a list with sources for drivers for phones from various different companies.

    Eclipse now should give you the phone as a choice when you click on Run and it presents you possible device to launch.

    In some case Eclpise will tell you Target Unknown which prevents you from using the device. If that's the case you might have to restart the phone. You might also have to check and recheckUSB debugging, till the phone asks you to allow your particular computer to do usb debugging.

    0 讨论(0)
提交回复
热议问题