2013-06-17 7 views

답변

2

,

Vibrator mVibrate = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE); 
long pattern[]={0,800,200,1200,300,2000,400,4000}; 
// 2nd argument is for repetition pass -1 if you do not want to repeat the Vibrate 
mVibrate.vibrate(pattern,-1); 

당신은 오랜 시간 viabration에 대한 패턴의 배열을 증가시킬 수있다.

+0

-1 대신에 10 번 (10 회 반복)을 통과하면 진동이 10 회 반복되지 않습니다. 반복하는 방법? –

+0

@AtulBhardwaj 테스트하려는 장치는 무엇입니까? – Lucifer

+0

나는 Htc one v (ICS)를 사용하고있다. –