I'm making one part in my app where if you push the button then the phone will vibrate, and if you push the button again the phone will stop vibrating. I am using a Radio button for my button. my code is right now for the vibrate part:
while(hard.isChecked()==true){
vt.vibrate(1000);
}
The phone vibrates but it doesn't like vibrate with full power, and the radio button does not change. I am also unable to turn it off because the phone basically freezes. Anybody have any ideas to fix this?