[Q] HTC One disable headset redial functionality - One (M7) Q&A, Help & Troubleshooting

Not sure if this is the right forum. I found that double tapping the button on a headset causes HTC One to redial the most recent number in my call logs. I did find a thread with the same topic but it only mentions a workaround and not a solution. So I created a small app with a broadcast receiver to listen for headset events and perform the appropriate action (and hopefully disallow the device to take over). But no matter what i try, the device always ends up redialling. I tried digging into the source code to see how the device intercepts these events and found that the phone app registers a broadcastreciever for MEDIA_BUTTON intent with priority 1001. So i registered mine with a higher priority (tried 1002, then Integer.MAX_VALUE), but still the device takes over. Moving my apk to /system/app and setting the proper permissions didnt help either. Registering my receiver with AudioManager.registerMediaButtonEventReceiver or AudioManager.registerMediaButtonEventReceiverForCalls (using reflection) doesn't help either because i can see from the logs that phone app intercepts the event even before audio service does. I can see clearly that the MediaButtonReceiver in Phone.apk is the one performing the redial. So if anyone has had success with intercepting headset events before the phone app, please guide me so that i can go about tweaking my ONE so that i can use headset controls like in iPhone.
P.S. The closest possible solution that i came across is to write a service which makes sure that there is always a dummy entry at the top of call logs (MediaButtonReceiver in the phone app does not redial if the most recent number is blank, -1 or -2), then install an app like Jays or headset button controller to get the desired functionality. But this is an ugly workaround because the call logs will always have a dummy entry at the top and not all headset events are propogated to these apps, meaning they dont work most of the time.
Note. This redial functionality seems to be specific to HTC.

Solved
Juja01 said:
Not sure if this is the right forum. I found that double tapping the button on a headset causes HTC One to redial the most recent number in my call logs. I did find a thread with the same topic but it only mentions a workaround and not a solution. So I created a small app with a broadcast receiver to listen for headset events and perform the appropriate action (and hopefully disallow the device to take over). But no matter what i try, the device always ends up redialling. I tried digging into the source code to see how the device intercepts these events and found that the phone app registers a broadcastreciever for MEDIA_BUTTON intent with priority 1001. So i registered mine with a higher priority (tried 1002, then Integer.MAX_VALUE), but still the device takes over. Moving my apk to /system/app and setting the proper permissions didnt help either. Registering my receiver with AudioManager.registerMediaButtonEventReceiver or AudioManager.registerMediaButtonEventReceiverForCalls (using reflection) doesn't help either because i can see from the logs that phone app intercepts the event even before audio service does. I can see clearly that the MediaButtonReceiver in Phone.apk is the one performing the redial. So if anyone has had success with intercepting headset events before the phone app, please guide me so that i can go about tweaking my ONE so that i can use headset controls like in iPhone.
P.S. The closest possible solution that i came across is to write a service which makes sure that there is always a dummy entry at the top of call logs (MediaButtonReceiver in the phone app does not redial if the most recent number is blank, -1 or -2), then install an app like Jays or headset button controller to get the desired functionality. But this is an ugly workaround because the call logs will always have a dummy entry at the top and not all headset events are propogated to these apps, meaning they dont work most of the time.
Note. This redial functionality seems to be specific to HTC.
Click to expand...
Click to collapse
Finally got this working. It can be done by modifying the keylayout file and mapping scancode 226 to MEDIA_STOP instead of HEADSETHOOK and then writing a service which can intercept and handle this. As for making sure the service has highest priority in intercepting media button events we need to register a content observer for "media_button_receiver" setting (The device changes this setting whenever an application registers itself as a registerMediaButtonEventReceiver), and on every change register ourselves again as the mediaButtonEventReceiver so that we always stay on top of the stack.

Related

[Guide] Tasker - Tasker/AutoRemote/etc ~ Videos ~ Guides ~ Profiles for Gear

I am in no way attempting to take credit for this program or any profiles created unless my name is annotated next to a published link. Support these guys buy buying their app(s) as this is a tremendous backend for amazing automation for today and the future.
In an effort to help everyone new to Tasker (and its associated apps like AutoRemote) and its capabilities, I'm starting this thread to list profiles that people are actively using on their gear.
What is Tasker?
Tasker is an application for Android which performs tasks (sets of actions) based on contexts (application, time, date, location, event, gesture) in user-defined profiles or in clickable or timer home screen widgets.
What are some of the things I can use these apps for?
While the number of uses for Tasker is limitless and only supressed by your imagination, here is a list of published tasker profiles that people have created for common yet out of the box thinking type usage: Tasker Profiles
Here are only some of the things you could do with Tasker, it's real power is the flexibility to combine contexts and tasks however you wish.
passcode-lock sensitive applications (e.g. for child safety)
change phone settings by
*application: long screen timeout in a book reader
*time: screen brightness lower in the evening
*location: ringer volume high at the office, turn off ke yguard at home
wake up with a random song from your music collection
Text-to-speech; read out loud: incoming SMS/ phone number, WiFi/Bluetooth status, when it's time for an appointment, when the battery is low etc etc (Android OS 1.6+ only)
launch a music application when your music SD card is inserted, otherwise a file browser
start the day with a particular application showing
change all your home icons and wallpaper every day, or in particular locations
turn the phone upside down to return to the home screen, tilt 90 degrees to the left and back to toggle speakerphone during a call
create a Home widget to
*toggle bluetooth/wifi on/off
*launch wireless settings dialog
*show a menu of tasks to choose
*send an emergency SMS with your GPS location
remap camera etc buttons to other applications, or show a menu of applications and/or actions
zip/unzip application data on the fly when an application is launched/exits
pause music playback while in a particular application, restart on exit
change the Home icon for any application
take a time-lapse photo series (possibly 'secretly')
make a regular backup of a file on the SD card
track your phone location via SMS in case of theft
extend the use of the media button on your headset: take a picture from a distance or go to the previous media track with a long press
record call times and destinations to the SD card
show a popup when an SMS arrives from a particular phone number
setup a birthday SMS to be sent months before it happens so you don't forget
record battery levels over time to a file on SD card
make automatic recordings of what you say during phone calls to SD card
during the night, turn on airplane mode to conserve battery/reduce radiation, but turn it off every 15 minutes to check for SMS/voicemail.
setup a vacation SMS message, with different messages for different callers
launch a music application when headphones are connected
Guides and Tutorials
OG Development Site for Tasker for Android
Massive amounts of reading material/guides
Tasker 101 Help Videos - by hollywoodfrodo
Tasker Profiles
Auto Bluetooth/Internet Tether - App Trigger Method - Props to Brendo.
Auto Bluetooth/Internet Tether - Screen On/Off Trigger Method - Props to st-tps
Please drop a note in the thread or PM me with your Profiles and/or Instructions. This is thread is to bring the power of Tasker on the gear to a single place. Thread links/files/guides all welcome.
Cool
Here's one that I've been using:
http://forum.xda-developers.com/showthread.php?t=2542050
Recommended companion app: AutoRemote
What we really need is an update to Tasker to allow exporting...
I would love if this thread develops and thank you for starting it...i am trying to learn how to use tasker to get weather widgets to read weather from stock weather widget.....F0mey said you needed SQlite which i have and tasker...but im lost from there
It has taken me the better part of 4 days to get mine set up for voice automation. I know I've barely gotten started but I can now give a voice command to the gear and have it open Pandora and adjust the volumes on the phone. Then pause Pandora and readjust the volumes with another command. Think entering and exiting your car. Having this core structure in place, I think as I move to a full home automation plan, I will be able to integrate it with no problems.
Tasker, Autovoice, and Autoremote are all required. When I get a little more time, I'll try to decompress all that I learned over these 4 days to create a tutorial.
In the meantime, if you search autovoice and autoremote on Youtube, you can find some great assistance. Armando Ferreira has some great tutorials that really helped me get to where I am (and pushing me to where I want to be).
I was hoping someone can help me with what I am trying to do. First I'll explain what I want and then show screen shots of what I tried. So basically I want my weather info to be set for UCCW widgets and it seems u need tasked and sqlite to do so. And no null has sqlite support so I'll show u what I've done.
I know I'm probably totally off but can anyone tell me if I'm close or help
Sent from my SPH-L720 using xda app-developers app
Great Job with the OP #WellDone
Sent from my SM-N900P using Tapatalk
Bump. Added new Bluetooth Tether method by st-tps. Please give them props and if you have any profiles you have created please share!
Do you have to have an internet connection on you Gear for the initial Autoremote setup? I really just need the bluetooth connection to my phone to send intents to trigger tasks from there. I've googled the crap out of it but keep coming to the same posts. Thanks!
snowmangoh said:
Do you have to have an internet connection on you Gear for the initial Autoremote setup? I really just need the bluetooth connection to my phone to send intents to trigger tasks from there. I've googled the crap out of it but keep coming to the same posts. Thanks!
Click to expand...
Click to collapse
I'm having the same issue. I can get autoremote to send through BT occasionally but not consistently.
I also have trouble with autovoice offline. Sometimes it works, sometimes not.
Sent from my SPH-L720 using Tapatalk
cvondra said:
Bump. Added new Bluetooth Tether method by st-tps. Please give them props and if you have any profiles you have created please share!
Click to expand...
Click to collapse
Nice thread, everyone can take use of the Tasker Power!
And thanks for the prop
When I double tap Nova, I use AutoVoice recognised Profile on Gear to send an autoremote message to the phone.
When the phone receives the message, it opens my Spotify playlist, and starts playing,
It also uses intents within Spotify to open the now playing window
Sent from my GT-N7100 using Tapatalk
Has anyone found way to activate/deactivate motions with tasker at a given time?
I use to turn it of when i go to bed to save battery
sent from my carrier pidgeon
pzayx said:
Has anyone found way to activate/deactivate motions with tasker at a given time?
I use to turn it of when i go to bed to save battery
sent from my carrier pidgeon
Click to expand...
Click to collapse
just what motions are you doing in bed exactly???
do you "sleep" with your watch on?
Wahaha! Nothing like that mate, but do you lay completely still when you are trying to sleep? Yes i sleep with the watch on because i am using the alarm feature and it works really good
sent from my carrier pidgeon
vibrate & ring
Any of you tasker experts know how trigger an event on an incoming call on the Gear? I've tried Event --> phone ringing, and it doesn't seem to trigger anything when I get a call. I was thinking maybe there's a way to do it with Intent Received, but I don't know which intent...
I wanted the gear to play a ringtone once when I receive a call (while the gear is set to 'vibrate')
I can achieve this using Autoremote. The phone ringing event works on the phone itself, so I had Autoremote send a message "RING" to the gear, and the gear received this and played the ringtone... it wasn't really a good way to do it, and wasted battery because I had to keep the Autoremote bluetooth listener on.
lopan2000 said:
Any of you tasker experts know how trigger an event on an incoming call on the Gear? I've tried Event --> phone ringing, and it doesn't seem to trigger anything when I get a call. I was thinking maybe there's a way to do it with Intent Received, but I don't know which intent...
I wanted the gear to play a ringtone once when I receive a call (while the gear is set to 'vibrate')
I can achieve this using Autoremote. The phone ringing event works on the phone itself, so I had Autoremote send a message "RING" to the gear, and the gear received this and played the ringtone... it wasn't really a good way to do it, and wasted battery because I had to keep the Autoremote bluetooth listener on.
Click to expand...
Click to collapse
I think you may need to find out what 'app' opens. Perhaps dialer? And trigger on app start as it doesn't seem to use the actually phone capabilities of android
Sent from my GT-I9505 using XDA Premium 4 mobile app
Brendo said:
I think you may need to find out what 'app' opens. Perhaps dialer? And trigger on app start as it doesn't seem to use the actually phone capabilities of android
Sent from my GT-I9505 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
I just tried dailer ... didn't work Doesn't see like there are any other apps on the tasker app list that would apply to incoming calls. That's why i was thinking there was an intent or something else that could be monitored.
I have a simple one for alerting of Whatsapp messages (got sick of watch constantly alerting on group messages). Essentially it triggers a notification, then hides it
Make sure Tasker is set to send notificiations in Gear Manager
Make sure Tasker is turned on in Accessibility services
Profile: Notification Whatsapp
Cooldown: 5mins
Event: Notification
Owner Application: WhatsApp
Task: WhatsApp Message
1. Notify
Title: Whatsapp
Text: Message Received
Icon: [Can be anything, as doesn't show up anywhere]
2. Wait
Seconds: 5
3. Notify Cancel
Title: whatsApp
Further ideas:
- Display content (requires sqlite3)
- Only display for group chats
- Repeat alerts
UPDATE:
I use WhatsTasker for more detail. https://play.google.com/store/apps/details?id=net.zhdev.whatstasker

[Q} Send/simulate bluetooth headset button click from Gear to phone?

Is it possible to send/simulate a bluetooth headset button click from the Gear to the attached phone?
My goal is to have that click activate Google Voice Search on the phone, but all the options I've tried don't work well enough.
1) Sending bluetooth commands through rooted terminal like: echo -e "AT\r" > /dev/ttySAC0
sending any command to ttySAC0 would crash the bluetooth connection. I guess this is a serial interface and isn't designed to accept text commands (I don't have a full understanding of this, just conjecture). Other devices like 'uhid' and 'uinput' didn't work either (everything just returns 1, and I don't know what that means either), I tried all the ones that showed up under 'ls -l /dev/' with 'bluetooth' in their properties.
2) Using tasker+autoremote: works when bluetooth tethering is on but is slow (command going through internet and back), and works when bluetooth direct receiving is enabled on the phone, but this drains battery a lot (Autoremote always awake listening on bluetooth). Neither one of these is a palatable side effect (slow, or battery drain).
3) Using tasker to intercept a command from the Gear media controller app
Works sometimes, I usually use the 'previous' button, but the need to 'Grab' the media button interferes with using it for music playback, and using another tasker task to enable/disable this profile leads to erratic behavior (sometimes the media player, Winamp in this case, will start working immediately, sometimes not). The bigger issue is that the media controller app stops responding after an hour or two, requiring rebooting the phone, or killing some of the Samsung Accessory services running in the background, which then relaunch themselves. I think there's too much interaction here with Tasker, Winamp, and the Samsung Accessory stuff to know what's happening though. The delay is also highly variable, which is annoying, and sometimes when the Voice Search launches I do not get the initial 'ding' audio through the Gear, though there could be a ton of reasons for that as well.
Long story short, I'm hoping being able to simulate bluetooth headset button presses/commands would solve all of the above problems, getting faster response, no/minimal extra power consumption, and be very reliable. Also, this may sound dumb, but I don't actually have a normal bluetooth headset to test with either.
Thanks to everyone that's on xda-developers, this is my first post ever, but I've been coming to this site for stuff for years.
We haven't found anything yet
(There are a few older threads around)
Oops. Should have guessed that. Thank's for the quick reply.
Brendo said:
We haven't found anything yet
(There are a few older threads around)
Click to expand...
Click to collapse
ulnah said:
Oops. Should have guessed that. Thank's for the quick reply.
Click to expand...
Click to collapse
A possible work around would be to activate Google Now on your phone, then goto gear manager and have it send notifications from Google search. Once you get some notifications from Google search, you can click the "show on device" button and it should open, and you can say "OK Google" to start start it up. (make sure you turn that feature on in the Google search settings )
My solution, for anyone interested...
I use AutoVoice rather than Google Now, although any command not matched by AV I have sent to Google Now for processing.
Anyway, there doesn't appear to be any faster way of communicating than via whatever it is that the Gear and my Note II communicate over by default. Not having the know-how to tap into this, I figured I would just use an existing method of communicating and use Tasker to intercept and pretend that was a BT button press instead.
So what I've done is just set it up so that when I use the dialer to run a USSD code that doesn't mean anything on my phone, this triggers what would ordinarily happen on a BT button press on autovoice - that is:
When variable %WIN matches "USSD code running" -> Perform task with actions: "Input - back" and then Plugin - State - Autovoice - Recognise... or whatever it is you want.
So that last action could be replaced by launching Voice Search if you want Google Now to take control.
I've probably not explained that well at all, will post a proper how to if anyone's interested.
mattytj said:
I use AutoVoice rather than Google Now, although any command not matched by AV I have sent to Google Now for processing.
Anyway, there doesn't appear to be any faster way of communicating than via whatever it is that the Gear and my Note II communicate over by default. Not having the know-how to tap into this, I figured I would just use an existing method of communicating and use Tasker to intercept and pretend that was a BT button press instead.
So what I've done is just set it up so that when I use the dialer to run a USSD code that doesn't mean anything on my phone, this triggers what would ordinarily happen on a BT button press on autovoice - that is:
When variable %WIN matches "USSD code running" -> Perform task with actions: "Input - back" and then Plugin - State - Autovoice - Recognise... or whatever it is you want.
So that last action could be replaced by launching Voice Search if you want Google Now to take control.
I've probably not explained that well at all, will post a proper how to if anyone's interested.
Click to expand...
Click to collapse
This is actually quite a clever work around, great thinking.
I can't get this to work. For example, when I use '*#111222#' and press 'dial' on my phone, it tries, then errors (this is good I think)
But when I tried to dial the same number from my Gear, I get '*#111222# not supported. Are you on null rom on your Gear?
mattytj said:
I use AutoVoice rather than Google Now, although any command not matched by AV I have sent to Google Now for processing.
Anyway, there doesn't appear to be any faster way of communicating than via whatever it is that the Gear and my Note II communicate over by default. Not having the know-how to tap into this, I figured I would just use an existing method of communicating and use Tasker to intercept and pretend that was a BT button press instead.
So what I've done is just set it up so that when I use the dialer to run a USSD code that doesn't mean anything on my phone, this triggers what would ordinarily happen on a BT button press on autovoice - that is:
When variable %WIN matches "USSD code running" -> Perform task with actions: "Input - back" and then Plugin - State - Autovoice - Recognise... or whatever it is you want.
So that last action could be replaced by launching Voice Search if you want Google Now to take control.
I've probably not explained that well at all, will post a proper how to if anyone's interested.
Click to expand...
Click to collapse
fOmey said:
This is actually quite a clever work around, great thinking.
Click to expand...
Click to collapse
Thanks mate, big fan of your work with the Gear, would have returned this thing after a day without you ROM.
ulnah said:
I can't get this to work. For example, when I use '*#111222#' and press 'dial' on my phone, it tries, then errors (this is good I think)
But when I tried to dial the same number from my Gear, I get '*#111222# not supported. Are you on null rom on your Gear?
Click to expand...
Click to collapse
Are you using the phone app on your gear or the dialer app? I am running _null.
Using the dialer means it just passes the dialer digits to the phone to process, so I simply dial "2" on the dialer and call. 2 gets picked up as a ussd code, which does nothing, but tasker intercepts and Pepper, my phone, asks me what she can do for me. I speak into my watch and she proceeds to ignore or misunderstand me.
All operating as normal.
Sent from my GT-N7105 using xda app-developers app
For some reason I thought it would have to start with '*#' to be recognized as a code, but '2' works as well.
Some quick testing shows no problems, I hope it stays that way. I had tried something similar by dialing a dummy number, having it hang up, and then start, but that took a long time and was much worse than this. Thank you!
This works excellent !
Only thing I dont like is the "unknown code" error that pops up on my phone, once I figure how to terminate that, its perfect.
fOmey said:
This works excellent !
Only thing I dont like is the "unknown code" error that pops up on my phone, once I figure how to terminate that, its perfect.
Click to expand...
Click to collapse
If it's an OCD type issue like me, trigger an overlay scene on the error message that destroys itself when the error isn't in focus, something like "Initiating...." . So mine does that, with a back action also triggered by the error. My attribute trends to lag so the error it's thrown before recognition. If after, adapt the scene to say, executing... or something. Point is, it of sight, out of mind!
mattytj said:
If it's an OCD type issue like me, trigger an overlay scene on the error message that destroys itself when the error isn't in focus, something like "Initiating...." . So mine does that, with a back action also triggered by the error. My attribute trends to lag so the error it's thrown before recognition. If after, adapt the scene to say, executing... or something. Point is, it of sight, out of mind!
Click to expand...
Click to collapse
Iv attempted to simulate a back button press with tasker, works fine if the phone is unlocked.. although if the phone is locked, im presented with a "UNKNOWN CODE" error which frustrates me
Ill have to get back to the drawing board and figure it out..
EDIT: Shortly after writing the above I came up with this, works a treat:
Code:
Task: Phone Trigger (36)
A1: AutoVoice Recognize [ Configuration:
Voice command with headset Package:com.joaomgcd.autovoice Name:AutoVoice Recognize Timeout (Seconds):0 ]
A2: Wait [ MS:0 Seconds:4 Minutes:0 Hours:0 Days:0 ]
A3: Run Shell [ Command:input keyevent 4 Timeout (Seconds):0 Use Root:eek:n Store Output In: Store Errors In: Store Result In: ]

tasker

Edited original post as now getting. a collection of tasker tasks i have going on and easier to keep them in the first post but Will help below if anybody wants to copy them, also if anyone else wants to post there's that will be good.
1st) have tasker to toggle settings like wifi brightness etc when i get to work. Reverts settings back when i get home. Produces notifications on watch.
2nd) sends a message to my wife when i say launch task 1 that tells her im on my way home.
3) launches a autowear location menu on the watch. In the menu i can select wether i want high accuracy or low and wether i want location services on or off atall.
4) when i charge my phone between 2230hrs and 0625hrs the watch is switched to screen off, Bluetooth off and phone set to vibrate. When its unplugged or after 0625 the watch is switched to always on and phone is muted.
5) mobile data on and off options via autowear.
6) detects when i have lost connection to the watch and immediately turns on GPS to record the location. Then notifies me on my phone with a map view. I fix generators for a living so i need to take my watch of sometimes or when i have a shower in the gym etc. If for whatever reason i forget it which is unlikely i will know where i last had it.
7) every morning when i take my phone and watch off charge it selects a different watchface every morning at random from a predefined list. (needs watchmaker to be installed)
8) using autowear so that when i start My Tracks on the watch it automatically starts my gps task for me.
9) little on screen widget that i can control my Xbox/sky/tv changing channels, volume, play and pause, go to Fifa 15, record that, turn everything off. Accomplished using autowear, autoremote, autoinput, and a redundant tablet.
I have only just began with tasker so my methods won't be the most efficient but they work. If anyone has better ways as i mainly using auto input then please get in touch.
Could you describe which apps you used to pull this off? Thank you
Yeah sure, was a app called Tasker that i used on my phone to create it all and then a tasker plugin called tasker wear i think.
I have since been tinkering with it.
The updated version now has the following options;
1) text the wife I'm on my way home.
2) turns Wi-Fi of, auto brightness on, sync off
3) opposite of 2.
4) closes and returns back to watch face.
With option 2 and 3 i get a notification of what has beebeen switched on/ off.
With option 1 it also activates option 3 ready for when i get home.
Also if i forget to do the above especially switch evereverything on it detects when I'm nearly home and does it for me.
check AutoWear tasker plugin from joao, you can do anything with it in combination with the other Autoapps.
TheKaser said:
check AutoWear tasker plugin from joao, you can do anything with it in combination with the other Autoapps.
Click to expand...
Click to collapse
I'll have a look at that thanks, currently going to create a task that switches between gps and battery saving location as you can't turn location of anymore. So will have it switch to gps when needed and back to battery saving when not.
Also going to see if i can switch to cinema mode when charging and lost connection to the phone together and to revert back to previous or new watch face when undocked and regains connection to phone.
Hi Phil, would love to hear how you get on with that.
Hi rusty,
Just finished putting something together.
I have tasker detect when it's on charge and if between 2230 and 0625, and if so it switches the watch screen to off, and Bluetooth of.
using a profile manger, that detects that the watch it's no longer connected so switches notifications on the phone back on.
The opposite is when it's unplugged it switches Bluetooth back on, turns the watch screen to always on and the profile manager then detects the watch so turns the phone to mute but watch still vibrates.
I can now sleep at night with no lights keeping me awake and the only thing i have to do is plug my phone in.
Just to note it was pretty simple to set up with tasker and autoinput.
TheKaser said:
check AutoWear tasker plugin from joao, you can do anything with it in combination with the other Autoapps.
Click to expand...
Click to collapse
Hi kaser, as you recommended autowear do you have any experience with it as i can't get my head round it and there isn't much on YouTube or Google to help out.
phil gpx said:
Hi kaser, as you recommended autowear do you have any experience with it as i can't get my head round it and there isn't much on YouTube or Google to help out.
Click to expand...
Click to collapse
Hi, sorry for the late reply, I was on holidays.
I do have some experience. You need to download AutoApps from Google Play and suscribe to the alpha testing. Then you can download AutoWear. For this you also need to joing the Google+ community where the developer is always nice and reactive when posting bugs, questions or guidelines. Posting at the community is the best thing you can do since AutoWear is still in Alpha and it improves every day and it is not too straight forward to understand, especially how it communicates with AutoVoice and how commands and parameters are passed to Tasker.
By the way, I have a similar profile telling my girlfriend when I get to work, when I leave work and when I have parked at home coming from work, which automatically trigger depending on my location and connection to my car's bluetooth or work's WiFi. You don't really need your watch for that
Cheers for replying.
I have already downloaded it and played around but can't get my head around the processes of the app.
I followed the guide for the voice screen but cant get new screens up or start tasks etc.
I'm usually pretty good at working things out but cant with autowear.
what is it you are trying to do? Do you have the latest version of tasker?
Yeah i have the updated tasker but just can't work out how to get from the voice screen too say a "4 menu screen" that has tasks i have set up. Not sure what i want to accomplish with tasker next but i know if i can understand autowear it would help.
Have you done anything with autowear.
I have done the above tasks in the first post with autoinput and taskerwear but that is just a series of notifications that you can select to start tasks.
my main use for autowear is to send whatsapp messages from scratch (whatsapp currently only allows to reply to messages).
To achieve this I open an AutoWear Voice Screen by shaking the watch, and say "write to XXXX and say YYYY". This triggers an AutoVoice profile configured to react to "write to (?<contact>.+) and say (?<message>.+) (using Regex)
Inside the task, I do an WhatsTasker plugin contact search of the variable %contact generated by the regex command. Once found, I text the %message to this contact using whatstasker.
The best thing to do is to read the variable descriptions in the task. For example, you create your profile of AutoVoice Recognized. Inside it, before clicking configuration, you can see all the local variables available and their description. These are usable within the task. Same thing goes for any autowear task, they are usable after calling the task.
For example, in my task, after finding the contact, I have an AutoWear confirmation screen with the picture of my contact, his name, and the message I dictated. And following that I have an if %awmessage (the output of this confirmation screen) is different to cancel, then send the message.
Hope this helps a bit!
Thanks buddy, i will try and emulate this tonight once the kids are in bed. Whatsapp was one of the things i have been thinking of doing, just wish there was a way of bringing up a previous conversation without waiting for a new message.
well maybe you can capture the messages as they come, along with the sender's name, and save them in a temp file. Then create an autowear screen that shows the content of this file when requested... but I guess it would be very difficult to make it work perfectly (especially with groups).
I have managed to create and implement a mobile data on and off switch into my interactive notification popup for system settings using tasker, taskerwear and autoinput.
I now have the ability to switch wifi, mobile data, gps on and off as well as high and low accuracy location services and change profiles from one notifaction popping up.
left watch behind
Currently trying to set up a tasker profile that when i get disconnected from my watch will activate gps, stores the location, notifies you where it is and shows you on the map.
Hopefully will never need it but you never know. I.e you leave it in the gym, at work etc
Is there already something that does something similar as struggling at the moment but will crack on if there isn't.
Any one let me know about how to get nearby cell tower ID in a single variable.
Otherwise, how to convert the context in profile as a task.
Ty
Sent from my Micromax A58 using XDA Free mobile app
I'm sorrlearning tasker but i think if you create a new profile that activates when you connect to that cell tower. Then create a task and set variable %whateveryouwantto to %CellID.
You should only have to do that profile once and the variable will be set and you can use it in your profiles and tasks.
On another note i got my lost watch profile working like a charm.
Great Job
TheKaser said:
my main use for autowear is to send whatsapp messages from scratch (whatsapp currently only allows to reply to messages).
To achieve this I open an AutoWear Voice Screen by shaking the watch, and say "write to XXXX and say YYYY". This triggers an AutoVoice profile configured to react to "write to (?<contact>.+) and say (?<message>.+) (using Regex)
Inside the task, I do an WhatsTasker plugin contact search of the variable %contact generated by the regex command. Once found, I text the %message to this contact using whatstasker.
The best thing to do is to read the variable descriptions in the task. For example, you create your profile of AutoVoice Recognized. Inside it, before clicking configuration, you can see all the local variables available and their description. These are usable within the task. Same thing goes for any autowear task, they are usable after calling the task.
For example, in my task, after finding the contact, I have an AutoWear confirmation screen with the picture of my contact, his name, and the message I dictated. And following that I have an if %awmessage (the output of this confirmation screen) is different to cancel, then send the message.
Hope this helps a bit!
Click to expand...
Click to collapse
It sounds great :good:
May you please share your work with screenshots or something else so I can make it work for me?
Thanks in advance and best regards

Reading Caller ID out loud setting, or APP

So, I found the setting that reads to me who is calling.
So, for instance if Jesse Pinkman calls me, my phone will say "Jesse Pinkman" and then ring.
If it is not in my contact list, it will read the number.
But it only does it once.
I remember on some of my older phones, it would actually say who was calling, you would get the ring, say who was calling, get the ring, and repeat until VM picks up or I pick up.
I am looking for a way to do this again. If not available, is there an APP that will do this?
The reason I am doing this is because I have bluetooth on my helmet, and when I am riding I only want to pick up for certain callers.
On my phone, it is found under
Settings >> Accessibility>> Screen Reader>> Settings >>Read caller ID aloud
I simply did a search for "aloud" in Settings.
For anyone still looking for an answer: Samsung has made it difficult (on Oreo) to enable the function without the accessibility settings that call out every action you do. It has been integrated well in Pie under call settings. However, if you don't like Pie, like me, there's only one app that I found to actually do it very well. Its called Who's Calling. Get it from PlayStore. I have tested more than 20 apps and nothing does it better. I haven't even seen a single ad from it. Hope this saves someone time.
Cheers

Using a 2-button BT camera remote control clicker as the input for tasker.

I want to use a 2-button BT camera remote control clicker as the input for tasker.
If one of the buttons of the remote is pushed, then tasker should initiate a call to a phone number-1 (that is dial the number-1). If the other button of the remote is pushed, then tasker should initiate a call to a phone number-2.
The goal is to fully automate the process, so only a single push of a button will initiate a call.
I want to do it for my elderly mother for (non-medical) emergencies.
Will I be able to achieve what I want with Tasker?
Will it be say, 90% reliable solution?
Bluetooth Remote Control by CamKix
Even before I got to the end of your post, I said to myself this sounds like they are trying to build a sort of life alert system. Brilliant!
I just wanted to say how great an idea that is, but not sure how to Intercept/interact with a BT device. Yet, seems possible. Maybe the AutoNotification plugin?

Categories

Resources