Thứ Hai, 22 tháng 3, 2010

Setting up and running Android Emulator 1.5 on Windows

  • Create a folder c:/android on your local drive
  • Extract android-sdk-windows-1.5_r2.zip into c:/android
  • Set Environment Variable
  1. Right click on My Computer
  2. Select Properties
  3. Under Advanced Tab, click Environment Variables
  4. Highlight the Variable PATH under User Variables and click Edit
  5. Append the following path to the end of Variable Value field
  6. Do the same for PATH under System Variables
c:\android\android-sdk-windows-1.5_r2\tools\ 

Note: If you are using an older version of the sdk use "-t 1" instead of "-t 2"

  • Press Enter when prompted about "custom harware profile". Default answer is [no].
  • To start the emulator type: start emulator @myandroid
  • Wait until the emulator shows the home sceen
  • Run installation batch file found in CVS
et9/android/dailybld/install_xt9_android.bat 
    • Usually the installation folder is in the form \\tegic-devbuild2\DailyBuilds\XT9_Android_1-0-0\yyyy_mm_dd\yyyymmdd_hhmm\prod
  • The last two steps (running the emulator and installing XT9) are combined in the batch file run_xt9_android.bat. The usage is run_xt9_android.bat

Note

  • Last line in command prompt should say "Success"
  • The batch file needs to run only once to copy the update packages into the emulator. If you would like to run the emulator again without updating the packages you can type
  • After installation for the first time, go to Settings -> Locale and text, and make sure XT9 Keyboard is the only activated input mode under Text Settings.
start emulator

How to Reset Android Emulator

  1. Make sure emulator is closed.
  2. From command line, type:
 emulator -avd myandroid -wipe-data
  1. Install XT9 again using the steps described in above section.

How to change orientation

  • Landscape:
  1. From command line, type: emulator -avd myandroid -skin HVGA-L
  1. Wait until the emulator shows the home screen
  2. In a separate console window, run installation batch file:
et9/android/dailybld/install_xt9_android.bat 
  • Portrait (default):
  1. From command line, type: emulator -avd myandroid -skin HVGA-P
  1. Follow step 2 and 3 in Landscape instruction

Không có nhận xét nào:

Đăng nhận xét