안드로이드에서 진동 울리기
Vibrator vibrator = (Vibrator) getSystemService(VIBRATE_SERVICE)// (Context.VIBRATE_SERVICE)
long millisecond = 1000; // 1초
vibrator.vibrate(millisecond);
Vibrator vibrator = (Vibrator) getSystemService(VIBRATE_SERVICE) // <- or Context.VIBRATE_SERVICE)
long[] pattern = {2000,1000}; // 2000 = x , 1000 = y
vibrator.vibrate(pattern,z);
<uses-permission android:name="android.permission.VIBRATE"/>
[Android] 커스텀 리커버리 (0) | 2023.07.17 |
---|---|
[Android] Rooting, ROM, Custom ROM, Bootloader UnLock (0) | 2023.07.17 |