What are Android rules and how do you create a Do Not Disturb rule?
Open the Settings app from either the Notification Shade or App Drawer and tap System > Rules to open the Rules screen. For this feature to work, you must allow the app to run in the background. As the warning states, this may cause an extra drain on your battery, but I've not noticed the drain to be all that much. To enable this, tap Next, and then when prompted, tap Allow. Back in the Rules window, tap Add rule. In the resulting screen, tap Add Wi-Fi Network or Location, and either select a wireless!-->>!-->>!-->>!-->>!-->>!-->>!-->>!-->>!-->>!-->>!-->>!-->>…