Thursday, July 30, 2009

How to Create Two or multiple instances of Emulator

  1. cmd1 ... D:\android-sdk_1.5_windows\tools>android create avd -n avd1 -t 1
    Android 1.5 is a basic Android platform. Do you wish to create a custom hardware profile [no] Created AVD 'avd1' based on Android 1.5
  2. cmd1 ... D:\android-sdk_1.5_windows\tools>android create avd -n avd2 -t 1
    Android 1.5 is a basic Android platform. Do you wish to create a custom hardware profile [no] Created AVD 'avd2' based on Android 1.5
  3. cmd1 ... D:\android-sdk_1.5_windows\tools>D:\android-sdk_1.5_windows\tools>emulator –avd adv1
  4. cmd2 ... D:\android-sdk_1.5_windows\tools>emulator –avd adv2
  5. Two emulator instances are created. One with Port 1 = 5554 and other with Port 2 = 5556.
  6. Similarly multiple instances of the emulator can be created by creating multiple AVDs and running emulator deploying those AVDs.
  7. AVD can be easily created using ECLIPSE too.
  8. Go to Eclipse -> Run Configurations -> Target tab
  9. You can see the list of all the existing AVDs.
  10. Now go to AVD Manager (Android Virtual Devices Manager) and choose the option of Create AVD as in the next window.
  11. You can also Delete AVD ... go back to AVD Manager and select the particular AVD.
  12. You can create emulator instance directly from the ECLIPSE.
  13. Eclipse -> Run Configurations -> Target -> Select a preferred AVD for deployment and then RUN.

2 comments:

Azeem Nawaz said...

Hi i want to know that is there any way that i could connect two avds?

Azeem Nawaz said...

hi is there any way that i can connect two avds with each other?