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

后端 未结 16 1872
礼貌的吻别
礼貌的吻别 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:53

    What I did, by reading all of above answers and it worked as well: 7 deadly steps

    1. Connect your android phone with the pc on which you are running eclipse/your map project.
    2. Let it install all the necessary drivers.. When done, open your smart phone, go to: Settings > Applications > Development > USB debugging and enable it on by clicking on the check button at the right side.
    3. Also, enable Settings > Unknowresoures
    4. Come back to eclipse on your pc. Right click on the project/application, Run As > Run configurations... >Choose Device>Target Select your device Run.
    5. Click on the Target tab from top. By default it is on the first tab Android
    6. Choose the second radio button which says Launch on all compatible deivces/AVDs. Then click Apply at the bottom and afterwards, click Run.
    7. Here you go, it will automatically install your application's .apk file into your smart phone and make it run over it., just like on emulator.

    If you get it running, please help others too.

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

    Some people may have the issue where your phone might not immediately get recognized by the computer as an emulator, especially if you're given the option to choose why your phone is connected to the computer on your phone. These options are:

    • charge only
    • Media device (MTP)
    • Camera file transfer (PTP)
    • Share mobile network
    • Install driver

    Of these options, choose MTP and follow the instructions found in the quotes of other answers.

    • Hope this helps!

    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:57

    just for additional info, If your apps is automatically run on emulator, right click on the project, Run As -> Run Configuration, then on the Run Configuration choose on the Manual. after that, if you run your apps you will be prompted to chose where you want to run your apps, there will be listed all the available device and emulator.

    0 讨论(0)
  • 2020-12-07 15:01

    For those who are trying to find how to enable debugging on devices running Jelly Bean 4.2 (e.g Google Nexus), you have to go to Settings > Apps > About tablet and tap the text "Build number" 7 times slowly. Go back to the now available Settings > Developer options and check USB debugging as stated in previous posts.

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