Friday, September 6, 2013

Tasker to prevent fraud or promotion call

Tasker to prevent fraud or promotion call


Hi, guys, i have been stuck at work for days, didn't have time to update or spend on tasker indeed.

actually at some point, i am lacking of inspiration or new idea of creative.

however, i did have a new idea these days. so would like to share with you people here along.

okay, let us get started.


in our daily lives, usually we would easily become the target getting promotion call or even worse getting the fraud call, that happens probably because we sometimes left our contact phone number in social networking sites or some other online shopping sites, etc. that is mainly how they got our contact phone number.

it is sorta annoying if you are getting a promotion call especially when you are busy with something, and it is very dangerious if you are getting a fraud call from a con group.

so if we are able to see the search results from the search engine of the caller phone number while we are getting a call, it would be some sort helpful if they are already flagged in the internet.


well, i guess you know what i am about to do next.

1st, we will need to set up a scene in tasker, then create 3 profiles to get this work done.

tasker-scene-create a new scene, named it whatever you like, (e.g. reverse lookup) then edit the scene, add a webview element:

name: leave it default
mode: URL
source: leave it blank
allow phone access: uncheck
self handle links: checked

at last, remember to add a button element to destory the scene in the scene.


profile 1: (caller reversal)

context:

state-phone-call, type: incoming, number: !C:ANY  -----!C:ANY means the exception from contacts list.

task:

action 1: variable-variable set, name: %CALLREVERSAL, to: http://www.google.com/search?newwindow=1&q=%CNUM&cad=h

action 2: scene-show scene, name: reverse lookup, display as: dialog dim behind heavy, show exit button: unchecked      -------------dialog dim behind heavy can disable the system keyguard lock automatically and show up the scene always at the top. so you may take a peek at the web search results and determine to answer or not. if yes, you will need to close the scene first then to tap to answer the call.

action 3: scene-element web control, scene name: reverse lookup, element: webview 1, mode: load url, value: %CALLREVERSAL



profile 2:

context:

event-phone-phone idel

task:

action: scene-destory scene, name: reverse lookup



profile 3: (missed call lookup)

context:

event-phone-missed call, caller: !C:ANY

task:

action 1: variable-variable set, name: %CALLREVERSAL, to: http://www.google.com/search?newwindow=1&q=%CNUM&cad=h

action 2: task-wait, 6 seconds       ------------ this action is set because while your phone is done from a call, profile 2 will destory the scene, but it seems the tasker phone idle context reacts a little bit slower than the missed call context trigger, so it would destory the scene triggered by profile 3. of course, you may create another scene to avoid this issue. but i am getting lazy, pardon me @_@!!

action 3: scene-show scene, name: reverse lookup, display as: overlap, blocking, full window, show exit button: unchecked     -------note: don't use dialog effect, it could cause your screen staying dim, cannot go into sleep.

action 4: scene-element web control, scene name: reverse lookup, element: webview 1, mode: load url, value: %CALLREVERSAL


Done!


well, via these 3 profiles, you are able to determine at some point if the caller is worth picking up or not. of course, the profiles would never trigger while you are getting calls from the contacts.

it would show up while you are getting a call from a stranger, and automatically closeup if you don't do anything(e.g. you were not with the phone or didn't hear the ringing ATM.), also it would display on screen while you noticed there is a missed call and unlocked the phone.

but there is only 1 defect, for missed call part, if you have got 2 or more different calls from different strangers one by one, the scene would only display the latest caller phone number reverse lookup results.


does it sound attracting?

why not take action now.............

enjoy and have fun

:)