how to install my app on Motorola Android

泄露秘密 提交于 2019-12-11 07:50:19

问题


I'd like to install my app on Motorola Android as a testing. how to? Please share me any step by step link


回答1:


Copied from http://developer.android.com/guide/developing/eclipse-adt.html and http://developer.android.com/guide/developing/device.html#setting-up assuming you are using the eclipse plugin. Might be better just to read them yourself.

* Declare your application as debuggable in your manifest

In Eclipse, you can do this from the Application tab when viewing the Manifest (on the right side, set Debuggable to true). Otherwise, in the AndroidManifest.xml file, add android:debuggable="true" to the element.

* Enable USB Debugging on your device

On the device, go to the home screen, press MENU, select Applications > Development, then enable USB debugging.

* Ensure that your development computer can detect your device when connected via USB

Once set up and your device is connected via USB, install your application on the device by selecting Run > Run (or Run > Debug) from the Eclipse menu bar.

Also see http://developer.android.com/guide/developing/device.html#setting-up

You can verify that your device is connected by executing adb devices from your SDK tools/ directory. If connected, you'll see the device name listed as a "device."

If using Eclipse, run or debug as usual. You will be presented with a Device Chooser dialog that lists the available emulator(s) and connected device(s). Select the device upon which you want to install and run the application.



来源:https://stackoverflow.com/questions/2895531/how-to-install-my-app-on-motorola-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!