/>
X
Innovation
Why you can trust ZDNET : ZDNET independently tests and researches products to bring you our best recommendations and advice. When you buy through our links, we may earn a commission. Our process

'ZDNET Recommends': What exactly does it mean?

ZDNET's recommendations are based on many hours of testing, research, and comparison shopping. We gather data from the best available sources, including vendor and retailer listings as well as other relevant and independent reviews sites. And we pore over customer reviews to find out what matters to real people who already own and use the products and services we’re assessing.

When you click through from our site to a retailer and buy a product or service, we may earn affiliate commissions. This helps support our work, but does not affect what we cover or how, and it does not affect the price you pay. Neither ZDNET nor the author are compensated for these independent reviews. Indeed, we follow strict guidelines that ensure our editorial content is never influenced by advertisers.

ZDNET's editorial team writes on behalf of you, our reader. Our goal is to deliver the most accurate information and the most knowledgeable advice possible in order to help you make smarter buying decisions on tech gear and a wide array of products and services. Our editors thoroughly review and fact-check every article to ensure that our content meets the highest standards. If we have made an error or published misleading information, we will correct or clarify the article. If you see inaccuracies in our content, please report the mistake via this form.

Close

What are Android rules and how do you create a Do Not Disturb rule?

Here's an Android feature that can really help to make your mobile life a bit more efficient.
Written by Jack Wallen, Contributing Writer on
Person using an Android phone.
MS_studio/Shutterstock

Rules. We all know them. Some follow them, some break them, and some make them. But when it comes to phones, what are the rules? I'm not talking about whether or not you should use them while in line at the bank or if it's okay to block that one annoying acquaintance who continues to blow up your phone with nonsense.

I'm talking about rules you create that serve to automate changes that happen to your device, based on either a Wi-Fi network connection or location.

For example, you might have a work phone that you use and you want it to automatically switch to Do Not Disturb when you come home from a long day of fielding calls. Sounds nice never having to remember to silence that phone when you arrive home. 

Even better, when you leave home, your Android device will automatically go back to pestering you until you return home. The rules feature is handy. And because it's been around since Android 10, chances are pretty good that it's available to you.

I'm going to show you how to create an Android Rule that will do exactly what I described above -- switch your device to Do Not Disturb as soon as you arrive home.

Also: How to set up a bedtime schedule on your Android device

What are Android rules and how do you create a Do Not Disturb rule?

Requirements

The only thing you'll need for this is an Android device running at least Version 10 of the operating system. That's it… let's set some rules.

1. Open the Rules screen

Open the Settings app from either the Notification Shade or App Drawer and tap System > Rules to open the Rules screen.

The Android Rules screen.

You must first enable the app to run in the background.

Screenshot by Jack Wallen/ZDNET

2. Enable the app to run in the background

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.

The Android Rules battery drain warning.

Read the warning carefully.

Screenshot by Jack Wallen/ZDNET

Also: What is app pinning and how do you set it up?

3. Add your Do Not Disturb rule

Back in the Rules window, tap "Add rule." In the resulting screen, tap Add Wi-Fi Network or Location, and either select a wireless network or type an address for the location. In this example, you'd pick your home network.

Once you've taken care of that, select what you want the device to do when you arrive. For this example, select Turn on Do Not Disturb. You can optionally enable the notification, which will send a notification to the Notification Shade.

The Android rule configuration screen.

Creating a new Android rule.

Screenshot by Jack Wallen/ZDNET

After taking care of that, you can then back out of the Settings app and trust that whenever you arrive home, the device will be placed in Do Not Disturb mode. 

Also: How to control what apps send notifications to your Android

And that's all there is to adding an Android rule to make your life a bit more convenient.

Editorial standards

Related

How to enable Find My Device on your Android phone (and why you should)
Woman texting on Android.

How to enable Find My Device on your Android phone (and why you should)

What graphics card do I have? How to check your GPU and drivers
A girl with headphones in, using a laptop

What graphics card do I have? How to check your GPU and drivers

Broadband availability: This new map can help you find out what services are available
getty-a-woman-looking-at-a-laptop-with-a-concerned-expression.jpg

Broadband availability: This new map can help you find out what services are available