I need to test a newly developed app on multiple Android device emulators through Android Studio.
This app has multiple environments wherein this is hosted, like, qa, UAT, Production. I can change the environment through a screen that comes only after shaking a real device.
Unfortunately, Android Studio 3 does not give a direct option to shake the device. How can I achieve this shake action in the emulator ?
Try
Ctrl + m for windows
⌘ + m for Mac OS-X
Ok Try this ...
Goto Setting->Virtual Sensors in emulator menu
Click on Move checkbox
Now try moving X Y Z seekbar
You can use this code snap to detect shake ShakeDetectionDemo


If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With