Android应用程序在手机上运行的步骤
2011-02-14 11:43
232 查看
仅用于计算机是Windows操作
1.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
我们就直接了当的在Eclipse里,在AndroidManifest.xml中<application>里加上android:debuggable="true"
2.Turn on "USB Debugging" on your device.
On the device, go to the home screen, press MENU, select Applications > Development, then enable USB debugging.
就是把手机的USB调试模式打开,方法是(我以HTC Desire HD为例):Menu>设置>应用程序>开发>勾选”USB调试“
3.If you're developing on Windows, you need to install a USB driver for adb. If you're using an Android Developer Phone (ADP), Nexus One, or Nexus S, see theGoogle Windows USB Driver. Otherwise, you can find a link to the appropriate OEM driver in the OEM USB Drivers document.
就是把手机用USB线连到电脑上,安装驱动程序,Win7会自动安装,如若没有自动安装,在各手机网站的技术支持里找到驱动并下载。
4.在Eclipse里点Run>Run(或Debug),这时会弹出一个窗口,让你选择用模拟器还是手机来显示,选择手机,再看看手机上是不是出现了运行结果呢?呵呵。
图中第一个是模拟器,第二个就是我的手机,呵呵。
以下是在模拟器上运行的效果:
再来一张手机上的效果展示:
1.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.xmlfile, add
android:debuggable="true"to the
<application>element.
我们就直接了当的在Eclipse里,在AndroidManifest.xml中<application>里加上android:debuggable="true"
2.Turn on "USB Debugging" on your device.
On the device, go to the home screen, press MENU, select Applications > Development, then enable USB debugging.
就是把手机的USB调试模式打开,方法是(我以HTC Desire HD为例):Menu>设置>应用程序>开发>勾选”USB调试“
3.If you're developing on Windows, you need to install a USB driver for adb. If you're using an Android Developer Phone (ADP), Nexus One, or Nexus S, see theGoogle Windows USB Driver. Otherwise, you can find a link to the appropriate OEM driver in the OEM USB Drivers document.
就是把手机用USB线连到电脑上,安装驱动程序,Win7会自动安装,如若没有自动安装,在各手机网站的技术支持里找到驱动并下载。
4.在Eclipse里点Run>Run(或Debug),这时会弹出一个窗口,让你选择用模拟器还是手机来显示,选择手机,再看看手机上是不是出现了运行结果呢?呵呵。
图中第一个是模拟器,第二个就是我的手机,呵呵。
以下是在模拟器上运行的效果:
再来一张手机上的效果展示:
相关文章推荐
- 使用安卓手机来运行与调试Android应用程序的步骤
- 【android开发】手机应用管理器的实现之实现对应用程序的运行、分享、卸载功能(三)
- 同时在手机和平板下兼容运行Android应用程序
- 使用Python开发Android应用程序:第三节 在电脑上编写程序在手机上运行
- 使用Python开发Android应用程序:第一节 在手机上配置Python运行环境
- 使用Python开发Android应用程序:第三节 在电脑上编写程序在手机上运行
- ADT 连接手机运行android应用程序时报错
- 已有50%的Android 手机现在正在运行 OS 2.1
- Android 手机上安装并运行 Ubuntu 12.04
- android 获得一个应用程序的启动次数,运行时间等信息
- Android中让应用程序自动安装到手机内存及判断应用程序是否安装在SDCard中
- android 获取正在运行的应用程序列表 .
- Android之——获取手机安装的应用程序
- Android笔记:获取手机所有应用程序
- Cocos2d-x 3.0修改Android平台帧率fps - 解决游戏运行手机发热发烫问题
- Eclipse开发Android程序如何在手机上运行
- Android应用程序框架层和系统运行库层日志系统源代码分析
- 获取android中正在运行应用程序的列表
- android: 将程序运行到手机上
- android 手机安装应用程序(APK)权限详细对照表