I've been trying for a while and I can't send a vibration to my SmartWatch 2. I'm just editing one of the sample codes, so it would be relatively easy. This is the code fragment:
// Show something
TextView prueba = (TextView)sensorLayout.findViewById(R.id.prueba);
if(Math.abs(values[0])>Math.abs(values[1]) & Math.abs(values[0]) > Math.abs(values[2])) {
prueba.setText("Hacia un lado");
startVibrator(1000,500, 3); // Does nothing.
}
else if(Math.abs(values[1])>Math.abs(values[0]) & Math.abs(values[1]) > Math.abs(values[2])) {
prueba.setText("Hacia delante o hacia atrás");
}
else {
prueba.setText("Horizontal");
}
The messages are working, but the vibration never do.