Skip to content Skip to sidebar Skip to footer

Vibrator Permission Force Close

I have this line of code calling 2 seconds from the vibrator_service; Vibrator v = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE);

Solution 1:

You need to add a uses-permission tag in the manifest file (as a child of the manifest element, same as the permission tag):

<uses-permissionandroid:name="android.permission.VIBRATE" />

As far as I know, the permission tag is only used to add additional text/graphic information to the permissions request when downloading the app, or to add new permissions to provide additional information to your users. I usually use both to be safe.

Post a Comment for "Vibrator Permission Force Close"