Home / مشکل کرش با خطای SecurityException هنگام فراخوانی notification با ویبره

مشکل کرش با خطای SecurityException هنگام فراخوانی notification با ویبره


Since this bug only occurs on Android 4.2 and 4.3 you might use this as a workaround (i.e. include the maxSdkVersion):

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

Note: the maxSdkVersion attribute was only added in API level 19, which in this case is luckily exactly the minimum we want! In theory we could put any value <= 18 to get the same effect, but that would be nasty.




     RSS of this page