admin管理员组

文章数量:1532071

2024年3月22日发(作者:)

Android SDK 工具参考 第十二章 (完)

本章提供了一些有价值的Android SDK工具参考项目,这些工具你已经在本书的课程

中使用过了。它们给了你一些命令行选项,可以在Android模拟器和Android调试桥中

使用。

Android模拟器命令

下表包含了大多数常规的Android模拟器命令。这些命令在2008年3月份发布的SDK

版本中可用。每个命令提供了简短的描述。

Emulator Command 模拟器命令 功能

emulator -console Enables the console shell on the current terminal

在当前终端上激活控制台外壳

emulator -data Uses a different file as the working user-data

disk image

使用一个不同的文件作为工作用户数据磁盘镜像

emulator -debug-kernel Sends kernel output to the console

发送核心输出到控制台

emulator -flash-keys Flashes keypresses on the device skin

在设备皮肤上闪烁keypress

emulator -help Prints a list of all Emulator commands

列出模拟器列表

emulator -http-proxy Makes all TCPconnectionsthrough a

specified HTTP/HTTPS proxy 通过一个定义的HTTP/HTTPS代理制作所有的TCP连接。

emulator -image Uses as the system image 作为系统镜像

emulator -kernel Uses as the emulated kernel 作为模拟的核

emulator -logcat Enables logcat output with given tags

用指定的标签激活logcat输出

emulator -mic Uses device or WAV file for audio input

使用设备或者WAV文件作为音频输入

emulator -netdelay 设置网络反应时间模拟到Sets

network latency emulation to .

本文标签: 命令作为模拟器文件