diff --git a/notifyApp/app/src/main/java/me/notify/notifyinfo/MyReceiver.java b/notifyApp/app/src/main/java/me/notify/notifyinfo/MyReceiver.java index bdb6cbe..351994e 100644 --- a/notifyApp/app/src/main/java/me/notify/notifyinfo/MyReceiver.java +++ b/notifyApp/app/src/main/java/me/notify/notifyinfo/MyReceiver.java @@ -119,6 +119,7 @@ Vibrator vibrator = (Vibrator) context.getSystemService(VIBRATOR_SERVICE); int space = 300; + int midT = 600; int longT = 800; int shortT = 80; @@ -138,6 +139,20 @@ vibrator.vibrate(new long[]{0,shortT,space,shortT,space,shortT,space,shortT,space,shortT,space,shortT,space,shortT}, -1); } else if ("8".equals(msg)){ vibrator.vibrate(longT); + } else if ("11".equals(msg)){ + vibrator.vibrate(new long[]{0,midT,space,shortT}, -1); + } else if ("12".equals(msg)){ + vibrator.vibrate(new long[]{0,midT,space,shortT,space,shortT}, -1); + } else if ("13".equals(msg)){ + vibrator.vibrate(new long[]{0,midT,space,shortT,space,shortT,space,shortT}, -1); + } else if ("14".equals(msg)){ + vibrator.vibrate(new long[]{0,midT,space,shortT,space,shortT,space,shortT,space,shortT}, -1); + } else if ("15".equals(msg)){ + vibrator.vibrate(new long[]{0,midT,space,shortT,space,shortT,space,shortT,space,shortT,space,shortT}, -1); + } else if ("16".equals(msg)){ + vibrator.vibrate(new long[]{0,midT,space,shortT,space,shortT,space,shortT,space,shortT,space,shortT,space,shortT}, -1); + } else if ("17".equals(msg)){ + vibrator.vibrate(new long[]{0,midT,space,shortT,space,shortT,space,shortT,space,shortT,space,shortT,space,shortT,space,shortT}, -1); } // vibrator.cancel(); }