KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
While reading the Android guide to Notifications , I stumbled across this: Adding vibration You can alert the user with the the default vibration pattern or with a vibration pattern defined by your application. To use the default pattern, add "DEFAULT_VIBRATE" to the defaults field: notification.defaults |= Notification.DEFAULT_VIBRATE; What this does is clear: it adds the DEFAULT_VIBRATE flag to the default flags of the notification object. But what does the |= operator do in Java? It looks like an "OR", but how does it work? Can you provide an example using numbers? Thanks
Tags (comma-separated)
Save Edits
Cancel