9

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.

Ahmad Aghazadeh
  • 16,571
  • 12
  • 101
  • 98
Can
  • 659
  • 1
  • 7
  • 24

4 Answers4

6

⌘+m is working for OSX, Also Its working in Genymotion, for windows users willing to perform a shake gesture just use Ctrl+m

Rizwan Atta
  • 3,222
  • 2
  • 19
  • 31
mychar
  • 1,031
  • 1
  • 11
  • 20
5

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.

More info and full tutorial

enter image description here

Genymotion not support this feature :

More info Genymotion Shell

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.enter image description here

Like this:enter image description here

Ahmad Aghazadeh
  • 16,571
  • 12
  • 101
  • 98
3

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.

cawwot
  • 193
  • 9
2

For Genymotion in particular for windows use Ctrl+Shift+M.

iknow
  • 8,358
  • 12
  • 41
  • 68
Rishabh
  • 61
  • 5