I know about the Vibrate class and how to use it, but where can I get the system default vibration pattern to use? Or is there some kind of intent I can launch to get the system to vibrate its default vibration?
Create a method that reproduce the default vibration and call it on every selection.
import android.os.Vibrator;
private void vibrate(){
Vibrator v = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE);
v.vibrate(1000);
}
permission required in AndroidManifest.xml
file:
<uses-permission android:name="android.permission.VIBRATE"/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With