On Apr 3, 2012, at 6:29 AM, syedamjad6736 wrote:
> Actually i dont know how to start emulator either from Visual Studio

Within Visual Studio, click Debug > Start Without Debugging. This will bring up 
a Select Device dialog; if no devices are listed, you can click the Start 
emulator image link at the bottom of the Select Device dialog which will bring 
up a Select Emulator dialog. Within the Select Emulator dialog, select an 
emulator image, then click OK to return to the Select Device dialog. Wait a bit 
for the emulator to finish booting, and the emulator name should appear within 
the Select Device dialog, at which point you can select it and click OK to run 
your app on the emulator.

> nor from command line, i used to start manually by clicking android emulator 
> exe.

Generally speaking you should prefer launching from Visual Studio. If you 
prefer the command-line...

> C:\Program Files\Android\android-sdk\tools>emulator.exe -avd 
> "d:\Android-Emulator\Run_Emulator(with Boot Animation).exe" -partition-size 
> 512
> PANIC: Could not open: C:\Documents and 
> Settings\samjad.NMS\.android/avd/d:\Android-Emulator\Run_Emulator(with Boot 
> Animation).exe.ini

`emulator -avd` doesn't take a full path to the AVD name. It just takes a base 
filename, which is a filename within (on your machine) C:\Documents and 
Settings\samjad.NMS\.android\avd. The "avd" directory will contain files with a 
.ini extension; your `emulator -avd` command-line will lack the .ini file 
extension.

I would thus suggest:

        emulator -avd "Run_Emulator(with Boot Animation)" -partition-size 512

This is assuming that you have the file:

        C:\Documents and Settings\samjad.NMS\.android\avd\Run_Emulator(with 
Boot Animation).ini

I'm willing to bet that you don't have such a file, in which case you'll need 
to adjust the `-avd` parameter, or create such an image within the Android 
Emulator Manager (Visual Studio: Tools > Start Android Emulator Manager).

 - Jon

_______________________________________________
Monodroid mailing list
[email protected]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to