Vibrates the phone. On the Corona simulator this will sound a system beep.
1 | system.vibrate() |
system.vibrate() -- vibrate the device
None.
Nothing.
To enable the vibrate function on Android devices, you must set the permission level in the build.settings file.
1 2 3 4 5 6 7 | settings = { androidPermissions = { "android.permission.VIBRATE" }, } |
How to enable in iOS? In Simulator bleep not works...
You didn't provide any details of what your are doing and what is not working but it is working in our release build, 591.
The vibrate generates a sound in the simulator and vibrates the phone. The Accelerator1 sample app demonstrates system.vibrate.
I used "system.vibrate()" on the latest 2011.591 build and when I put my app on my phone the app kept crashing at the point when it was supposed to vibrate. I went back removed the one line that had "system.vibrate()", put it back on my phone and the app doesn't crash anymore. Help???
Im using android 2.2 on my phone
Yes, to vibrate is giving malfunction. In the previous version to compile the same application, had no problem. Now generates the closing of the request.
hey guys i had the same issue, but got it resolved, please see this forum post
http://developer.anscamobile.com/forum/2011/08/05/how-add-android-permission-build-file
basically you need to get permission from the phone to use the vibrate, see the post!
Sorry, but we did change something in Build 591 that would cause system.vibrate to stop working. We removed the Aandroid.permission.VIBRATE from the Android manifest. This means you must add this yourself to the build.settings file. I've update this API page with that information.
Any way possible to decrease or increase the vibrate amount/size? having people complain that it vibrates too much haha
Anyone know how to make the vibrate function vibrate for a specific amount of time?