首頁>Club>
11
回覆列表
  • 1 # 手機使用者4605910236

    1. 在Android模擬器上安裝和解除安裝APK包


    1.adb install [-l] [-r] < file> - push this package


    file to the device and install it


    2.('-l' means forward-lock the app)


    ('-r' means reinstall the app, keeping its data)


    3.adb uninstall [-k] < package> - remove this app


    package from the device


    4.('-k' means keep the data and cache directories)


    安裝:


    1.adb install filename.apk


    2.D:\android-sdk\tools>adb install filename.apk


    3.* daemon not running. starting it now *


    4.* daemon started successfully *


    5.347 KB/s (111196 bytes in 0.312s)


    6.pkg: /data/local/tmp/filename.apk


    7.Success


    解除安裝:


    adb uninstall filename.apk


    或者


    adb shell rm data/app/filename.apk


    2. 在Android模擬器上使用sd card


    生成sdcard映象檔案:


    1.mksdcard: create a blank FAT32 image to be


    used with the Android emulator


    2.usage: mksdcard [-l label] < size> < file>


    3.if < size> is a simple integer, it specifies


    a size in bytes


    4.if < size> is an integer followed by 'K', it


    specifies a size in KiB


    5.if < size> is an integer followed by 'M', it


    specifies a size in MiB


    6.D:\android-sdk\tools>mksdcard.exe -l sdcard


    2048M sdcard.img


    啟動模擬器:emulator -sdcard sdcard映象檔案


    例如: emulator -sdcard sdcard.img


    將資源放入到sdcard裡面: adb push source-file /sdcard


    例如:


    1.D:\android-sdk\tools>adb push NOTICE.txt /sdcard


    2.1088 KB/s (156733 bytes in 0.140s)


    使用命令adb shell 檢視sdcard目錄:


    1.D:\android-sdk\tools>adb shell


    2.# ls sdcard


    3.NOTICE.txt

  • 中秋節和大豐收的關聯?
  • 一點一點這樣的詞語?