I have create method to vibrate the mobile,code is running well,but I can't vibration like a "play then stop then play". How can manage this type vibration?
code
//@JavascriptInterface
public void Viber(String value )
{
// Get instance of Vibrator from current Context
Vibrator v = (Vibrator)mContext.getSystemService(mContext.VIBRATOR_SERVICE);
if (value.equals("on"))
{
// Vibrate for 300 milliseconds
v.vibrate(6000);
}
else
{
v.cancel();
}
}