This is how i managed to make it work.
To create the 2nd instance you need to,
1. Need to create a separate virtual device on Android SDK and AVD Manager.
1.1 Open Eclips -> Window -> Android SDK and AVD Manager
2. Select virtual devices from left panel, Click on New button.
3. Set the name Eg. androidavd2
4. Set the Target Android 2.3 API Level 9 or any other you prefer.
5. Click on ok.
ok, now we have a Android Virtual Device created.
6. Open the Android SDK Tools folder in the command prompt.
C:\android-sdk_r08-windows\android-sdk-windows\Tools
Type:
emulator.exe -avd androidavd2
this will tell the emulator.exe to open android virtual device "androidavd2".
that's it.
Also you can use the telnet. (Windows Vista Up operating systems, you have to download telnet.exe separately because it doesn't come with the default Windows installation.)
to connect using telnet type
telnet localhost 5554
you can use the adb devices command to see the list of devices currently running. if not You need to start the emulator first!.
then
sms send
eg:
if you have any questions, please drop a line here. good luck.
a lot of thanx.. it makes my work so easy...
ReplyDeletethanx friend......thank you very much.....it makes my work really very easy
ReplyDeletethanx a lot friend......DEV From India
ReplyDeleteThank you soo much ... it really helped :)
ReplyDeletewhen we run "emulator.exe -avd androidavd2" in the command prompt it only opens one emulator, how do i open another?
ReplyDeleteI have created another device androidavd3.
When i run "emulator.exe -avd androidavd3", it does not open another emulator, why?
@Naveen Reddy Mandadi
ReplyDeleteOpen Eclipse -> Window -> select AVD Name -> Start
Great post
ReplyDelete