私のアプリには 2 つのバイブレーション コールしかありません
1. Vibration Call
listView.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView<?> parent, final View view,
int position, long id) {
...
vibrator.vibrate(200);
...}
}
2. Vibration Call
public void onSensorChanged(SensorEvent event) {
if (event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) {
}
....
//z axes accelerator changes
long[] pattern = { 0, 200, 200 };
vibrator.vibrate(pattern, 3);
}}
最初のものはエラーを引き起こしていると思います。
本当にエラーはありません。
振動をプログラミングするのは初めてです。
これを修正するにはどうすればよいですか?