I created a virtual device using Genymotion. I want to test an app that works with shaking the device. How can I make virtual device shake? I couldn't find how to shake that device.

- 16,571
- 12
- 101
- 98

- 659
- 1
- 7
- 24
-
Without using a USB-connected device for remote control? That's the only way I know how to do it. – kris larson Jun 07 '17 at 16:45
4 Answers
⌘+m is working for OSX, Also Its working in Genymotion, for windows users willing to perform a shake gesture just use Ctrl+m

- 3,222
- 2
- 19
- 31

- 1,031
- 1
- 11
- 20
This method only work api under 15
For test accelerator and other like gravity,gyroscope,... can use this application.
First download sensorsimulator
This is 2 application. One install(SensorSimulatorSettings-2.0-rc1.apk) in emulator second(sensorsimulator-2.0-rc1.jar) run in your PC.
Genymotion not support this feature :
Other way :
You can use Android Studio emulator Android 6.0(Google APIS) x86.
This this emulator(All x86/x64 bit) very fast and support all sensors.

- 16,571
- 12
- 101
- 98
-
I installed apk to genymotion device and run both app and jar file. When i click Test Connect in sensorsimulator app, app freezes and makes device reboot. – Can Jun 08 '17 at 11:09
-
There isn't a native way to emulate a shake in genymotion, but you could try a tool like Frappe (Mac only) to send a shake action to the virtual device. Depending on the client you are trying to emulate, "adb shell input keyevent 82" may send a shake action, wake the device, or simulate a menu key press.

- 193
- 9