How To Block Unwanted Calls On Your Android Phone

Ads by Google

block unwanted callsWith my ancient Nokia, when people were calling and bugging me, I couldn’t do much about it. The phone would ring, I would glance at the caller ID and silence it. If it was someone particularly insistent, I had to repeat the process several times, or just turn off the phone. With Android, I no longer have to do this.

I’m going to show you two different ways to block unwanted calls. The first is easy, free and built-in, while the second is more powerful and makes use of the amazing Tasker app.

The Simple, Free Way

Did you know Android already contains a built-in facility for filtering calls? Let’s say you’ve got an evil troll on your address book; someone whom you never want to speak to. To block all calls from this contact, fire up the Contacts app, go to the contact, and press Menu:

block unwanted calls

Now, tap Options:

block phone calls

And add a check next to “Incoming calls“. This way, all calls from this contact will be sent directly to voicemail.

This method has the advantages of being free, easy to use, and requiring no extra software. However, it also has some drawbacks. What if it’s someone you don’t want to always block, but only sometimes? And what if you’re trying to block all calls from unknown callers (i.e, “hidden numbers”)? These guys don’t have entries in your address book, so you can’t use this method at all. In that case, it’s time to kick things up a notch.

Ads by Google

The Sophisticated, Tasker-Based Way

If you don’t know Tasker, you should read my introduction to Tasker, as well as Angela’s Tasker GPS tutorial. Both of these show some of the magical stuff that can be done with this app, which is, by the way, leaps and bounds beyond anything you can do with an iPhone, including iOS 5. iPhone bashing aside, we’re now going to look at how you can set up a Tasker profile to block unwanted calls, and then set up a widget for toggling this profile on and off.

First, run Tasker and hit the + button for adding a new context:

block phone calls

Select Event > Phone > Phone Ringing:

block phone calls

Under “Caller”, put the number of the caller you’re trying to block. Since we’re trying to block all unidentified calls, we need to enter “0” here. Now hit the OK button.

Next, it’s time to select a task that would be executed when this context becomes active. As in what is your phone going to do when you get a call from a hidden number? You can select from any existing task, but you’re probably going to have to press New Task:

how to block phone calls

Next, hit the + button on the bottom-left:

how to block phone calls

When an unknown caller calls, we just want the phone to send them to voicemail, i.e, hang up the call. So go to Phone > End Call:

how to block phone calls

Your finished profile should look like this:

image

Okay, that was part one. You now have a profile that blocks all incoming calls from hidden numbers. Now let’s create a widget for toggling this profile on and off. Begin by noting the name of your blocking profile (here, called “Block hidden numbers” – we’ll be using this name later), and then toggle it off. Just tap the check-mark on the right. Next, long-tap your home screen, and add a Tasker task widget:

image

Select New Task and give it a name. Next, configure the task to look like this:

image

And there’s also step 6, which didn’t fit on my screen for the screenshot:

image

I know this might look a bit complex, so let’s break it down a little bit. The first thing we do is add a variable called %TOGGLE, and assign it a value of 1 and a “Wrap Around” value of 2. This means that %TOGGLE “wraps around” to 0 as soon as it reaches 2. In simple terms, it starts at 0, increments to 1, then goes back to 0 again. It looks like this:

image

Next, we toggle the “Block hidden numbers” profile. This is step 2, and it looks like this:

image

In step 3, we set the widget icon to a green “picked up phone” icon (i.e, “not blocking”), if %TOGGLE equals 1. It looks like this:

image

Step 4 sets a different icon (a red “bounced call” icon) if %TOGGLE equals 0:

image

Steps 5 and 6 do exactly the same things as steps 3 and 4, but set the widget label rather than the icon. I’ll just show you step 5:

image

Obviously, make sure you pick the correct label to go with each icon: The red icon, shown when %BLOCKING = 0 gets “Blocking” while the green one, shown when %BLOCKING =1, gets “Available”.

If you’ve done everything correctly, you should end up with something like this:

image

Which after a single tap, would change to this:

block unwanted calls

You can then go into your Tasker task list and see that the blocking profile is indeed toggled on.

Caveats

The first caveat is that this isn’t the simplest Tasker setup ever. If it’s your first one, you may need to fiddle with it a little bit until you get it to work. If things don’t work, drop me a comment below and I’ll try to help.

The next thing you should know is that Tasker provides a lot of other ways to toggle a profile on and off. For example, you may decide you wish to toggle the “Block hidden calls” profile according to the time of day, or your location. If you do that, the widget you created can easily go out of sync with the actual state of the profile. That can still be fixed, but it would involve a more complex setup which goes beyond the scope of this post.

Final Thoughts

Tasker is awesome, and this is just one example of its sheer power. It’s true that there are dedicated call-blocking apps on the market, but they are often heavy and do a lot of other stuff, such as block numbers off a central cloud-based list of spam numbers (useful if you’re in the US, not so much if you’re not). Tasker lets you configure your own custom call blocker, to work just like you want it to.

Are there any other Tasker profiles you’d like to see featured here?

Ads by Google

12 Comments - Write a Comment

Reply

Phil Fot

And if you want a much simpler solution, use the SPC (“Special Private Call”) app from the market.

It will block calls and SMS for the number you select.

Erez Zukerman

Does it work with hidden callers, as well? And does it have a widget?

Phil Fot

It works with anything that displays a number. I’m not certain what you mean by widget. Check it out from appbrain or the market. I’ve been using it for a few months and I’m happy. I get oddball recorded messages in spanish from several numbers. SPC blocks the call and it doesn’t ring my phone.

I haven’t needed to block any SMS messages yet.

Erez Zukerman

By “widget” I mean a quick way to toggle it on/off as needed. Anyways, might check it out! Thanks for the recommendation!

Phil Fot

no widget. It’s great if you have numbers you _never_ want to hear from again ;-)

Erez Zukerman

LOL, handy indeed! :)

Reply

Tom Rodman

Unfortunately, the “Simple, Free Way” isn’t there on all Android phones. At least it’s not on the Samsung Galaxy S 4G.

Erez Zukerman

Oh no, I’m sorry to hear that! Perhaps it’s a CyanogenMod thing (I use CM7).

Reply

C14517

the tasker for phone block always let phone rings at least once before it end the call, is there any solution?

Erez Zukerman

You’re right, it does do that… I don’t know of a solution, unfortunately. Do you get a lot of unwanted calls?

Reply

Oluf

There is also “Antinuisance” app that also blocks call and sms. It is on the play store.

Reply

FunkyMunkey

Is there an option or a profile to block a certain app from accessing internet, using the TASKER app. Kindly help. I’d like to block this one particular app without rooting the phone or installing any firewalls or 3rd party app.

Your comment