What is the difference between shake and vibrate? I need some help on these:
1) How to detect the phone vibration when phone lying on the surface. 2) How to detect the phone vibration when it is hanging.
Your help and code sample much appreciated. Thanks
--- Update
does shake mean movement along x and y ?
and Virbate means movement Up and down vertically?
// Constructor
public MainPage()
{
InitializeComponent();
acc.ReadingChanged += new EventHandler(acc_ReadingChanged);
acc.Start();
}
void acc_ReadingChanged(object sender, AccelerometerReadingEventArgs e)
{
Deployment.Current.Dispatcher.BeginInvoke(() => ThreadSafeAccelerometerChanged(e));
}
void ThreadSafeAccelerometerChanged(AccelerometerReadingEventArgs e)
{
XText.Text = e.X.ToString("0.000");
YText.Text = e.Y.ToString("0.000");
ZText.Text = e.Z.ToString("0.000");
}