Im currently working on an application using Xamarin android. I cannot get the device to vibrate though.
Vibrator vibrator = (Vibrator)Activity.GetSystemService(Context.VibratorService);
vibrator.Vibrate(100);
It builds but crashes when I press the button that is linked to the code.
This solves the problem AndroidManifest.xml
<uses-permission android:name="android.permission.VIBRATE"/>
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With