Lets say you are sleeping and that your phone is set to silent mode because.... well you are sleeping and you don't want to be disturbed... except if there is someone specific calling, you want it to ring (girlfriend/boyfriend, your kids, etc). This can easily be done with Tasker and will take you approximately 2-5 minutes if you are a beginner:
Open Tasker and go in the Profiles page
Create a new profile (Click on the + sign)
Add a name to your profile, in this example "Ring if"
Navigate the "Event" triggers, then select the "Phone" category and the "Phone Ringing" event
In the Event Edit page, click on the magnifying glass next to "Caller" then select "A Single Contact" and the desired contact from your contacts list
In the Event Edit page, click on your back button to save your settings, this will bring you back to the Profiles page
Click "add a task" and add a name to your task, in this example "Ring Loud"
In the Task Edit page, click the + sign to add an action
Select the "Audio" category and then the "Ringer Volume" action.
In the Action Edit menu, select desired ringer level, in this example Maximum (7)
Click your back button to save your settings this will bring you back to the Task Edit page
Click your back button again to save your task and go back to the Profiles page
Make sure your profile is turned on and that Tasker is enabled
Profiles/Tasks to restore
Profile:
Code:
<TaskerData sr="" dvi="1" tv="4.8m">
<Profile sr="prof8" ve="2">
<cdate>1450770650623</cdate>
<clp>true</clp>
<edate>1450770942391</edate>
<id>8</id>
<mid0>9</mid0>
<nme>Ring If</nme>
<Event sr="con0" ve="2">
<code>6</code>
<Str sr="arg0" ve="3">Contact Name</Str>
</Event>
</Profile>
<Task sr="task9">
<cdate>1450770675084</cdate>
<edate>1450770942391</edate>
<id>9</id>
<nme>Ring Loud</nme>
<Action sr="act0" ve="7">
<code>304</code>
<Int sr="arg0" val="7"/>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="0"/>
</Action>
</Task>
</TaskerData>
Task:
Code:
<TaskerData sr="" dvi="1" tv="4.8m">
<Task sr="task9">
<cdate>1450770675084</cdate>
<edate>1450770942391</edate>
<id>9</id>
<nme>Ring Loud</nme>
<Action sr="act0" ve="7">
<code>304</code>
<Int sr="arg0" val="7"/>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="0"/>
</Action>
</Task>
</TaskerData>
Thank you for sharing.
MXKM said:
Thank you for sharing.
Click to expand...
Click to collapse
you're welcome :good:
Hi! I have a question to you. Does it exist with viber? I mean if my phone is on Silent mode, and I need to have ring only if specific person sent me msg due viber/whatsapp? TYin advance for helping.
Hey I have a question I can get it to work with my phone on Vibrate only but when I switch my phone in to silent mode the phone stays silent when I ring it, I am using a Rooted OnePlus One if that matters.
Thanks,
Edit: well it works now so not sure what went wrong but I followed your guide and pictures step by step and it didn't work but then when I imported the xml file(s) you had made and then just changed the contact to one of mine it worked fine.
Thanks again for guide.
Would this (or other profiles that refer to the phone) work if the incoming call is to a Hangouts number?
Can anyone use it on Android9?
It works, but I can't hear ringing call sound in spite of ringer volume is 7.
Thanks for the tutorial.
If you want the phone to go to vibrate mode after the call, you should select "State" instead of "Event".
Related
Is there a way or hack to disable email icon to show up in the top icon bar? As well as the notification bubble? These are completely redundant with the TouchFlo3D and yet I have to dismiss them after each email update - very annoying...
Thank you!
i have asked the same question. look here:
http://forum.xda-developers.com/showthread.php?t=431794
however, to make it short, it is not a reg setting.
it is more about hooking into the notification queue.
Bummer! I hoped there'd be a solution...
Thank you!
1. With a registry editor, navigate to HKEY_CURRENT_USER\ControlPanel\Notifications\
{A877D65A-239C-47a7-9304-0D347F580408}
2. set value "Options" to 20000000 (hexadecimal) or 536870912 (decimal)
It works!!!
peibl said:
1. With a registry editor, navigate to HKEY_CURRENT_USER\ControlPanel\Notifications\
{A877D65A-239C-47a7-9304-0D347F580408}
2. set value "Options" to 20000000 (hexadecimal) or 536870912 (decimal)
It works!!!
Click to expand...
Click to collapse
Confirmed! It does work!
Thank you!
You should submit this to the List of Diamond Tweaks post - http://forum.xda-developers.com/showthread.php?t=398265
I'm using nhocbanme rom and there is an additional app call advanced setting which u can tweak for this thing. but i'm sure it can done by registry tweak. <<Dedy Wahyudi>>
This does work, however it seems to disable all vibrate and sound notifications as well.
The single tap for swipe, what is this aboutView attachment 4697687
I worked it out, its tap to answer a call or alarm instead of swipe
Removed.
Hello everyone i have a huawei mate 20 non root with android 9 and i would like to cancel an alarm with tasker but impossible.
I can activate an alarm at a given time but in the opposite direction impossible. do you have an idea thanks again
cordially
There are several ways to do this. What have you tried that isn't working? Even better, post the profile or task that isn't doing what you want. If you post just the task to snooze/dismiss an alarm, what triggers the task to run?
Before exporting, if you have sensitive information such as logins, api keys or anything else, you might consider setting those values to a variable and use the variable in your tasks so they won't export with the task.
To export a task description for posting, press on the name to highlight the profile. Go to the 3-dot menu and select export -> Description to Clipboard.
Now you'll be able to paste it. Be aware, it easier to use something like pastebin.com / hastebin.com and link to a post here. If you paste in a post here, the forum software will convert semicolons with characters directly after, into emoticons making it very hard to read.
Hello everyone here is what I can do and what does not work.
* What works
Calendar Entry Profile -> Work
Then task -> Set ALARM AM 05 H 45
* What does not work is the reverse task if not working then disable alarm clock
Thanks
Flechg said:
Hello everyone here is what I can do and what does not work.
* What works
Calendar Entry Profile -> Work
Then task -> Set ALARM AM 05 H 45
* What does not work is the reverse task if not working then disable alarm clock
Thanks
Click to expand...
Click to collapse
Posting the profile and task (as described above) is always more illuminating. However, the inverse of that would just be not setting an alarm. If there's no calendar entry the alarm is not set. I'm still missing the problem. Is there a residual alarm that goes off without having been set through tasker?
Edit -
I've been pondering and the only thing I can come up with is that you set an alarm and then the next day you set an alarm... then end up with a clock app full of alarms. If that's the problem, and the goal is to have the alarm only go off on work days, then approaching this problem the other way might be better.
Set the alarm to go of every day at the right time in the clock app, then create a profile that checks if today it's a work day, then set a variable.
In a second profile, use the variable (not a work day) as a context plus an AutoNotification intercept, for the alarm notification. You'll be canceling the alarm on days you don't need it.
On newer Android, there is a pre-notification that shows up some period before the alarm is set to fire (an hour maybe?). That notification has a dismiss button. If you intercept that notification, then the entry task can click on the dismiss button again using an AutoNotification action.
I think the category id is "Upcoming Alarms". This field can be examined by grabbing it in the AutoNotification profile context configured to "get all fields". Then flash %ancategoryid.
There are also clock app intents that can dismiss alarms. I don't use that because it doesn't work on my device. The intent looks like the following:
Code:
Send Intent [
Action:android.intent.action.DISMISS_ALARM
Cat:Default
Mime Type:
Data:
Extra:android.intent.extra.alarm.SEARCH_MODE:android.all
Extra:
Extra:
Package:
Class:
Target:Activity
This intent should only cancel the current occurrence of a repeating alarm.
If this works for you, then you can explore the android developer documentation - alarm clock and discover a variety of intents.
For the sake of completeness, in case this thread is found by others in the future, there is an action system -> cancel alarm.
This can be used to cancel/snooze/disable an alarm. However, it's reliability is dependant on the device/OS and at least in my case doesn't work any better than the intent. Some devices will always get a pop-up menu to confirm which alarm to take action on.
Hello and thank you for your answers
i tried intent as well as other things like cancel alarm but with my huawei it does not work okay is this android 9
I give up thanks again for your help
:crying:
The autoNotification method should work. If you haven't gone through and made sure that all of Huawei's power saving "features" are disabled so the apps can wake up and do their job without being killed by the system.
Read these
https://dontkillmyapp.com/huawei
https://tasker.joaoapps.com/userguide/en/faqs/faq-problem.html#00
If you really want help, then post what isn't working. Instructions to do so were given in post 2.
I tried Event received any SMS -> Trigger open app if %SMSRF ~ "sentence"
But this didn't work, I tried sending SMS or even when I click play button within tasks
BackToAndroid said:
I tried Event received any SMS -> Trigger open app if %SMSRF ~ "sentence"
But this didn't work, I tried sending SMS or even when I click play button within tasks
Click to expand...
Click to collapse
You need to use %SMSRB for the body text of an SMS message. %SMSRF contains the sender information.
You may have to use regex to do the sentence match if it could contain capital letters one time and not the next time, or stray punctuation, ect. Minimally, I would surround it with *. For example, *your sentence here* An asterisk * matches zero or more characters.
You could also do this logic in the profile event. On the content line put your key words surrounded by *. Again, the trick is, you need to capture the possibility of capitalization or punctuation if others may send this text. Easier to use regex if you don't have control over the sending of the message
Then you can simply use an launch app action in the task.
ktmom said:
You need to use %SMSRB for the body text of an SMS message. %SMSRF contains the sender information.
You may have to use regex to do the sentence match if it could contain capital letters one time and not the next time, or stray punctuation, ect. Minimally, I would surround it with *. For example, *your sentence here* An asterisk * matches zero or more characters.
You could also do this logic in the profile event. On the content line put your key words surrounded by *. Again, the trick is, you need to capture the possibility of capitalization or punctuation if others may send this text. Easier to use regex if you don't have control over the sending of the message
Then you can simply use an launch app action in the task.
Click to expand...
Click to collapse
I actually did use %SMSRB and not %SMSRF so my text will contain a fixed URL like notification.appname.com
Code:
<TaskerData sr="" dvi="1" tv="5.8.3">
<Task sr="task21">
<cdate>1568554172916</cdate>
<edate>1568709445218</edate>
<id>21</id>
<nme>Upi Icici</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>20</code>
<App sr="arg0">
<appClass>com.csam.icici.bank.imobile.IMOBILE</appClass>
<appPkg>com.csam.icici.bank.imobile</appPkg>
<label>iMobile</label>
</App>
<Str sr="arg1" ve="3"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="1"/>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%SMSRB</lhs>
<op>2</op>
<rhs>mobile.icicibank.com/upiPushNotifications</rhs>
</Condition>
</ConditionList>
</Action>
</Task>
</TaskerData>
This is what my XML looks like
It looks like you haven't surrounded the package name with * as I described.
Exporting as xml is to enable importing a task into a different device. It's not particularly helpful to show a problem. It's better to expiry the description. See here
I'm trying to get an alarm to go off when my calendar notifies me of an event. I can get the alarm to trigger but not switch it off. The only way I can kill the alarm is by forcing tasker to stop. Is there some way you can't kill the alarm or is this a bug as mentioned in the tip tool (Samsung galaxy Tab S3)
Understanding how your task is setup would be useful. Please look for the pinned post in this forum is you need help exporting the description of the task.
Alarm (5)
A1: Alarm Volume [ Level:11 Display: off Sound: off ]
A2: Play Ringtone [ Type:Alarm Sound: Stream:4 ]
A3: Wait [ MS:0 Seconds:5 Minutes:0 Hours:0 Days:0 ]
A4: Cancel Alarm [ Mode: Disable Current Hours:0 Minutes:0 Label: ]
The two last steps in the profile is my attempt to stop the alarm as I can't switch it off when it triggers
I'm not aware of any way to stop a play ringtone action. The problem had to do with underlying android and the need to reference the original play ringtone instance.
Most people use music play instead with a music stop action.
The cancel alarm action is for system alarms, which you can set through tasker, but you would need to use an alarm set action.
When you choose a stream in a audio action (such as the alarm in your play ringtone), you're determining which volume control affects the sound. It's not the same as creating a system alarm.
ktmom said:
I'm not aware of any way to stop a play ringtone action. The problem had to do with underlying android and the need to reference the original play ringtone instance.
Most people use music play instead with a music stop action.
The cancel alarm action is for system alarms, which you can set through tasker, but you would need to use an alarm set action.
When you choose a stream in a audio action (such as the alarm in your play ringtone), you're determining which volume control affects the sound. It's not the same as creating a system alarm.
Click to expand...
Click to collapse
Thanks that seems to have done the trick.