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 ?
Best Answer
Try
Ctrl + m
for windows⌘ + m
for Mac OS-XOk Try this ... Goto
Setting->Virtual Sensors
in emulator menuClick on
Move
checkboxNow try moving
X Y Z
seekbarYou can use this code snap to detect shake ShakeDetectionDemo