新聞中心
如果我們想對Android操作系統(tǒng)進行相應改變的換,需要通過模擬器的應用來進行相關(guān)操作。在這里就先為大家介紹一下有關(guān)Android模擬器應用技巧,讓大家對這一模擬器有一個初步的認識。

創(chuàng)新互聯(lián)公司服務緊隨時代發(fā)展步伐,進行技術(shù)革新和技術(shù)進步,經(jīng)過十載的發(fā)展和積累,已經(jīng)匯集了一批資深網(wǎng)站策劃師、設計師、專業(yè)的網(wǎng)站實施團隊以及高素質(zhì)售后服務人員,并且完全形成了一套成熟的業(yè)務流程,能夠完全依照客戶要求對網(wǎng)站進行成都網(wǎng)站建設、成都網(wǎng)站制作、建設、維護、更新和改版,實現(xiàn)客戶網(wǎng)站對外宣傳展示的首要目的,并為客戶企業(yè)品牌互聯(lián)網(wǎng)化提供全面的解決方案。
1. 在Android模擬器上安裝和卸載APK包
- adb install [-l] [-r] < file> - push this package
file to the device and install it- ('-l' means forward-lock the app) ('-r' means
reinstall the app, keeping its data)- adb uninstall [-k] < package> - remove this
app package from the device- ('-k' means keep the data and cache directories)
安裝:
- adb install filename.apk
- D:\android-sdk\tools>adb install filename.apk
- * daemon not running. starting it now *
- * daemon started successfully *
- 347 KB/s (111196 bytes in 0.312s)
- pkg: /data/local/tmp/filename.apk
- Success
卸載:
- adb uninstall filename.apk
或者
- adb shell rm data/app/filename.apk
2. 在Android模擬器上使用sd card
生成sdcard鏡像文件:
- mksdcard: create a blank FAT32 image to be
used with the Android emulator- usage: mksdcard [-l label] < size> < file>
- if < size> is a simple integer,
it specifies a size in bytes- if < size> is an integer followed by 'K',
it specifies a size in KiB- if < size> is an integer followed by 'M',
it specifies a size in MiB- D:\android-sdk\tools>mksdcard.exe -l
sdcard 2048M sdcard.img
啟動模擬器:emulator -sdcard sdcard鏡像文件
例如: emulator -sdcard sdcard.img
將資源放入到sdcard里面: adb push source-file /sdcard
例如:
- D:\android-sdk\tools>adb push NOTICE.txt /sdcard
- 1088 KB/s (156733 bytes in 0.140s)
使用命令adb shell 查看sdcard目錄:
- D:\android-sdk\tools>adb shell
- # ls sdcard
- NOTICE.txt
【編輯推薦】
- Android畫圖技巧應用方式分析
- Android dialog應用經(jīng)驗總結(jié)
- Android短信發(fā)送功能實現(xiàn)技巧分享
- Android開機自啟動具體操作方法簡介
- Android顯示網(wǎng)絡圖片相關(guān)實現(xiàn)方法淺談
本文題目:Android模擬器應用技巧詳細介紹
標題鏈接:http://www.dlmjj.cn/article/dpsedeg.html


咨詢
建站咨詢
