Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Repeating Vibration Feature

ANSWERED

Basically I am trying to get my app to repeat vibrations when I push a button, which I have sort of figured out. But whenever I start the while loop of vibration starts, I get an error that says Force-terminating unresponsive app.

 

Any ideas on how to fix this?

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Your loop is probably not relinquishing control to the operating system quickly enough. I think you only get to hang onto control for 5 or 10 seconds before being killed. It's better to use an event-driven approach rather than wait loops.

Peter McLennan
Gondwana Software

View best answer in original post

Best Answer
0 Votes
1 REPLY 1

Your loop is probably not relinquishing control to the operating system quickly enough. I think you only get to hang onto control for 5 or 10 seconds before being killed. It's better to use an event-driven approach rather than wait loops.

Peter McLennan
Gondwana Software
Best Answer
0 Votes