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

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

    I had the same problem, and have not been able to get Eclipse in Windows 7 to recognise the device. The device is correctly configured, Windows 7 recognises it on the USB port, and I edited the Run settings in Eclipse to prompt for a device, and it is just not there.

    I ran it with the following steps:

    • Connect the device to the computer with USB.
    • Ensure the device is not locked (ie. timed out in the UI). I have to keep unlocking it while I'm working.
    • Wait for Windows to recognise the USB device, and when the autoplay menu comes up select Open device to view files. It should open up the file system in the device, in Explorer.
    • In Explorer go to the Eclipse workspace and find the apk file from the build (eg. MyFirstApp.apk)
    • Copy the apk file to the Downloads directory on the device
    • On the device, use the My Files app (or similar) to open the Downloads directory.
    • Click the downloaded file (My First App.apk) and Android offers to install it
    • Select install
    • The app is now in the installed Apps. Run it.

    A second method is to mail the apk file to the device and then download and install it. (Credits to a post on SO which I can't find now).

    A third method is to use DropBox. This requires installation of DropBox on the PC and on the device (from the play store) but once both are set up it runs very smoothly. Just share a DropBox folder between the two devices, and then drop the APK into that folder on the PC, and open it on the device. With this method you don't need a USB connection, and can also install the APK on multiple devices. It also assists the management of multiple development versions (by making a separate sub-folder for each version).

提交回复
热议问题