1. 程式人生 > >Android模擬器(Android Emulator )使用的快捷鍵、引數、注意事項

Android模擬器(Android Emulator )使用的快捷鍵、引數、注意事項

Android Emulator是一款功能非常齊全的模擬器,電話本、通話等功能都可進行模擬。甚至其內建的瀏覽器和Google Maps都可以聯網。使用者可以使用鍵盤輸入,單擊模擬器按鍵輸入,甚至還可以使用滑鼠單擊、拖動螢幕進行操作。
1.模擬器和真機的不同之處
    * 不支援呼叫和接聽實際來電,但可以通過控制檯模擬電話呼叫(呼入和撥出)。
    * 不支援USB連線。
    * 不支援相機/視訊捕捉。
    * 不支援音訊輸入(捕捉),但支援輸出(重放)。
    * 不支援擴充套件耳機。
    * 不能確定連線狀態。
    * 不能確定電池電量水平和交流充電狀態。
    * 不能確定SD卡的插入/彈出。
    * 不支援藍芽。

2.引數大全
Android模擬器emulator.exe檔案
包含了很多引數,平時在Eclipse IDE中,模擬器執行自動呼叫的,如果僅僅使用Android emulator或採用NetBean這樣的開放環境又如何設定呢? 我們總結了一下模擬器的所有引數及使用方法,具體如下所示。  

Android Emulator usage: emulator [options] [-qemu args]
  options:
    -system <dir>       read system images from <dir>
    -datadir <dir>      write user data into <dir>
    -kernel
 <file>      emulated kernel 指定核心檔案
    -ramdisk <file>     ramdisk image (default <system>/ramdisk.img) 建立記憶體磁碟
    -image <file>       system image (default <system>/system.img)
    -initdata <file>    initial user image (default <system>/userdata.img)
    -data <file>        working user image (default <datadir>/userdata-qemu.img)
    -wipe-data          reset the user data image (copy it from initdata) 清除所有使用者資料
    -nocache            disable the cache partition 禁止分割槽
快取
    -sdcard <file>      SD card image (default <system>/sdcard.img) 使用SD卡映像
    -skindir <dir>      search skins in <dir> (default <system>/skins) 搜尋外觀面板路徑
    -skin <skin>        select a given skin 選擇Android模擬器面板ID
    -noskin             don't use any emulator skin 不使用任何模擬器外觀,這樣有助於提高模擬器速度,記憶體小的使用者可以嘗試
    -netspeed <speed>   maximum network download/upload speeds 設定網路速度如GPRS、EDGE、3G更多詳細的內容下面有介紹
    -netdelay <delay>   network latency emulation 網路延時設定
    -netfast            disable network shaping (full speed, no latency) 網路全速工作
    -trace <name>       enable code profiling (press F9 to start) 跟蹤除錯
    -debug-kernel       send kernel output to the console 核心除錯
    -console            enable console shell on current terminal 啟用控制檯Shell在當前中端
    -nojni              disable JNI checks in the Dalvik runtime 禁用JNI檢查
    -logcat <tags>      enable logcat output with given tags 設定log輸出標籤
    -noa io            disable android a io support 禁用音訊支援
    -usea io           enable android a io support (default) 啟用音訊支援
    -mic <file>         WAV file for a io input 使用wav檔案模擬mic麥克輸入
    -flash-keys         flash key presses on the device skin
    -raw-keys           disable Unicode keyboard reverse-mapping
    -radio <device>     redirect radio modem interface to character device
    -oldradio           enable old VM-based simulated radio
    -onion <image>      use overlay image over screen
    -onion-alpha <%age> specify onion skin transl ency (default 50)
    -http-proxy <proxy> make TCP connections through a HTTP/HTTPS proxy 代理伺服器設定
    -verbose            enable verbose output
    -verbose-keys       enable verbose key presses
    -verbose-proxy      enable proxy debug messages
    -version            display emulater version number
    -qemu               pass arguments to qemu
    -qemu -h            display qemu help
    -help               print this help
   Default network latency is 'none'
  <proxy> can be one of the following: