How about the Vibrators method cancel()?
Vibrator.cancel();
For example: (Initialize and start vibrating in the onCreate() - if the activity is destroyed or paused before the 10 seconds of vibration run out, stop vibrating)
Vibrator vibrator;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
vibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE);
vibrator.vibrate(10000);
}
@Override
public void onPause() {
vibrator.cancel(); // cancel for example here
}
@Override
public void onDestroy() {
vibrator.cancel(); // or cancel here
}