0

One of my apps needs to use the motion sensor in my Android "cell phone".

Of course, I can't shake my computer by using BlueStacks.

I wonder how I can achieve the "shake" function in BlueStacks environment?

I tried left-right arrows, but it does not seem to work at all.

Saeid
  • 2,261
  • 4
  • 27
  • 59

5 Answers5

1

Use BlueStacks 2, it's supported. I don't think it's possible to really shake in BS1, but with BS2, you have the button in the sidebar.

BlueStacks shake button

And you have also shortcuts

Quidam
  • 245
  • 1
  • 15
1

The shake feature in BlueStacks only shakes the device horizontally. To activate the debug menu in Expo, the device needs to be shaken vertically. BlueStacks only implementing horizontal shake was a poor decision.

A work-around for any device with adb debug attached is:

adb shell input keyevent 82
pmont
  • 2,083
  • 22
  • 43
0

It's not supported yet. Just tilt with left-down and left-right keys. This was from 3 months ago: https://getsatisfaction.com/bstk/topics/shake_shake_shake_feature

Filipe YaBa Polido
  • 1,656
  • 1
  • 17
  • 39
0

You can use genymotion, its better than bluestacks. It also supports Shake feature for WeChat.

Sandeep Poonia
  • 2,158
  • 3
  • 16
  • 29
0

I would simply record the sensor readings from a real device shake and then make a library that dispatches a fake shake whenever I need one:

How can I unit test an Android Activity that acts on Accelerometer?

Community
  • 1
  • 1
Vaiden
  • 15,728
  • 7
  • 61
  • 91