Vibrate

Example:

                                    
                                        <!-- AndroidManifest.xml -->
<uses-permission android:name="android.permission.VIBRATE"/>

<!-- activity_main.xml -->
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity"
    android:padding="16dp">

    <Button
        android:id="@+id/clickToVibrate"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"
        android:text="Click To Vibrate"
        android:textColor="@color/colorWhite"
        android:background="@color/colorPrimaryDark"
    />

</RelativeLayout>