Is there any way to check the device's ability to vibrate before calling "VIBRATOR_SERVICE". I want to check this ability before:
Vibrator vibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE);
- declaration some variables
- some scale calculations
It could save some resources, I guess.
Now I see only this way:
if (vibrator.hasVibrator()) {
/// declaration some variables
/// some scale calculations
}