How to run Xamarin-Android-Player from the command line?

Is it possible to start the Xamarin Android Player device from the command line on a Mac?

I am writing automatic UI tests and want to start them with a bash script. For Android, I have to start the emulator first, and since the standard Android emulator is unacceptably slow, I need to use XAP.

Basically I am looking for a command similar to the "normal" command:

./emulator -avd NameOfYourEmulator -partition-size 512

for the Xamarin Android player. The command above does not work, because XAP devices are not saved as regular AVDs, but as .vdi files.

+4
source share
1 answer

, Mac (ps -f -x ). :

/path/to/xap/executable --name "Device Name"

:

/Applications/Xamarin\ Android\ Player.app/Contents/Helpers/Xamarin\ Android\ Player.app/Contents/MacOS/Xamarin\ Android\ Player --name "Nexus 5 (KitKat)"

( , )

, , , , .

Edit:

- , , :

adb shell input keyevent 82
+6

All Articles