I am using this to work with Shake, and that works fine for me, but i wanna launch application when user shake their device, see my code below:
@Override
Write a separate app for Shake detection. On detection of shake, fire an intent with the package name of app, you want to launch:
Shake detection
Intent intent = new Intent (); startActivity (intent);