文档介绍:第一教程一安装 APK 首先,将模拟器执行起来,直到正式进入系统。接下来,打开一个 cmd 窗口,路径切换到模拟器目录下的 tools 目录。输入: adb install 你要安装的 apk 文件的路径。如果看到一行显示传输速度的文字,那说明安装成功了。 adb install 591 KB/s (180315 bytes in ) pkg: /data/local/tmp/ ess 回到 Android 模拟器的界面,本来以为可以看到刚刚安装的 APK 程序图标,结果,却根本没有…后来研究了一下,发现这根 APK 包自身有关。具体原因是来自于 文件的内容: < ?xml version="" encoding="utf-8"?> < manifest xmlns:android="http://schemas./apk/res/android" package="" android:versionCode="1" android:versionName=""> < application android:icon="***@drawable/icon" android:label="***@string/app_name"> < activity android:name=".HelloAndroid" android:label="***@string/app_name"> < intent-filter> < action android:name="" /> < category android:name="" /> < /intent-filter> < /activity> < /application> < uses-sdk android:minSdkVersion="6" /> < /manifest> 注意其中的 category 行定义,它表示这个 apk 属于哪个归类里,如果不正确的填写这个信息, Launche r 将不会将其显示在桌面上,因为它会认为这个应用部署以自己的归类。那么,是不是我们就无法执行缺失了 category 的 apk 了呢? 后来,在一个老外的 blog 上,查到了方法:在 shell 内使用 am来加载 android 应用: usage: am [start|instrument] am start [-a ] [-d < DATA_URI>] [-t < MIME_TYPE>] [-c < CATEGORY> [-c < CATEGORY>] ...] [-e < EXTRA_KEY> < EXTRA_VALUE> [-e < EXTRA_KEY> < EXTRA_VALUE> ...] [-n < COMPONENT>] [-D] [< URI>] am instrument [-e ] [-p ] [-w] < COMPONENT> 比如启动一个 manifest 为如下内容的 apk : < ?xml version="" encoding="utf-8"?> < manifest xmlns:android="http://schemas./apk/res/android" package=""> < application android:icon="***@drawable/icon" android:label="***@string/app_name"> < activity android:name=".HelloAndroid" android:label="***@string/app_name"> < intent-filter> < category android:name="" /> < /intent-filter> < /activity> < /application> < /manifest> 使用的指令为: adb shell am start -.xiashou.. 还有一些很有用处的用法: 直接启动浏览器打开一个网址: am start -a -d 话: am start -a -d tel:10086 启动