[GUIDE][Difficulty: Beginner] Read Aloud Track Name and Artist - Tasker Tips & Tricks

Do you have a bunch of new songs that you listen to while in the car, and would like to learn to associate the song with its track name and artist? Rather than looking at your car's display or your music widget, you can simply have Tasker them aloud when a song starts.
Prerequisites
A compatible music player. Go to this page and search for %MTRACK to see more details.
Instructions
Create a new profile and name it "Say Track."
Create an Event context, go to Variables --> Variable Set. Set the variable to %MTRACK and leave the value blank.
Create the task but don't name it anything.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Task --> Wait. Wait 1 second. This is necessary because %MARTIST sometimes takes a bit more time to be set after %MTRACK is.
Variables --> Variable Split. Name %MARTIST, Splitter is - (a dash).
Alert --> Say. Text: %MTRACK by %MARTIST1. Check If and set it to if %MPLAYSTATE !~ PAUSED AND %SCREEN ~ off. This is so it'll only read the track name and artist if the music isn't paused and if the screen is off.
Alert --> Flash. Text: %MTRACK by %MARTIST1. Check If and set it to if %MPLAYSTATE !~ PAUSED AND %SCREEN ~ on. This will flash the track name and artist if the screen is on and music is playing (obviously).
That's it! Let me know if you find this one useful. Also, post below if it works for your music player. I use Gonemad Music Player and it works great for me!
I've attached the XML file below. To import it, move it to /sdcard/Tasker/Profiles, then open Tasker and long-press on the Profiles tab up top and click on Import.

Thanks, but how can you handle different languages? I mean, you can't listen to English/Japanese/whatever songs/groups/artists in your main language (that's Italian, in my case) as you wouldn't even understand a thing. I tried to implement this long ago for car use via bluetooth and screen off but in the end I had to give up: could you find a solution maybe?

Is there a way that we can get this to work with Spotify?

Not working for me on Galaxy S2, CM13 and PowerAmp Pro, with your imported profile or entered manually. Wish it did!

TheOrangeRemix said:
Is there a way that we can get this to work with Spotify?
Click to expand...
Click to collapse
I too would like to know this information.

I just cant get this to work. All it does is literally say "%MTRACK" and "%MARTIST" .. it doesnt give the song info.
Im on 6.0 .. any help?

@MishaalRahman Are you sure that the variable "%MARTIST" is a tasker monitored Variable? It seems, that it's not a built-in variable, as I checked on this page. Additionally it doesn't work on my phone (%MTRACK is working fine though).
EDIT: And I can't import the project (it doesn't get recognized by tasker)

TheGingerlyGamer said:
I too would like to know this information.
Click to expand...
Click to collapse
Spotify won't work with this, but you can intercept the notification using AutoNotification or NotificationListener and have it read from there.
o0adam0o said:
I just cant get this to work. All it does is literally say "%MTRACK" and "%MARTIST" .. it doesnt give the song info.
Im on 6.0 .. any help?
Click to expand...
Click to collapse
It only works on certain music apps by default.
Follow_and_Feel said:
@MishaalRahman Are you sure that the variable "%MARTIST" is a tasker monitored Variable? It seems, that it's not a built-in variable, as I checked on this page. Additionally it doesn't work on my phone (%MTRACK is working fine though).
EDIT: And I can't import the project (it doesn't get recognized by tasker)
Click to expand...
Click to collapse
You might be right about that, %MARTIST works for me on Gonemad Music Player.

MishaalRahman said:
You might be right about that, %MARTIST works for me on Gonemad Music Player.
Click to expand...
Click to collapse
Yeah that's what I thought. Google Play Music doesn't deliver %MARTIST and it's no tasker built-in variable. I had a profile which reads aloud the track already. Thought it would be nice, if it read the artist, too. Unfortunately it doesn't seem to work for me, since I really want to stick to Play Music.
What a shame

Follow_and_Feel said:
Yeah that's what I thought. Google Play Music doesn't deliver %MARTIST and it's no tasker built-in variable. I had a profile which reads aloud the track already. Thought it would be nice, if it read the artist, too. Unfortunately it doesn't seem to work for me, since I really want to stick to Play Music.
What a shame
Click to expand...
Click to collapse
I got it to work with Play Music on Marshmallow.
Someone helped me with this:
"Those built-in variables don't function for all music apps and/or devices, OS, etc.
The best way to go about this is to use the plugin AutoNotification to pull the information directly from the notification in the status bar that displays it (assuming that when you're playing songs there's a notification up there showing Track/Artist).
You would use the Action AutoNotification > Query and specify Play Music as the app, then the track/artist should be available in the returned variables %antext or %antitle."

MishaalRahman said:
Spotify won't work with this, but you can intercept the notification using AutoNotification or NotificationListener and have it read from there.
It only works on certain music apps by default.
You might be right about that, %MARTIST works for me on Gonemad Music Player.
Click to expand...
Click to collapse
o0adam0o said:
I got it to work with Play Music on Marshmallow.
Someone helped me with this:
"Those built-in variables don't function for all music apps and/or devices, OS, etc.
The best way to go about this is to use the plugin AutoNotification to pull the information directly from the notification in the status bar that displays it (assuming that when you're playing songs there's a notification up there showing Track/Artist).
You would use the Action AutoNotification > Query and specify Play Music as the app, then the track/artist should be available in the returned variables %antext or %antitle."
Click to expand...
Click to collapse
That sounds good and I tried it, but unfortunately that's only a paid version feature. I don't know if I'm willing to pay, only that my script reads the artist, too. That seems to be a little exaggerated.
But thank you for the hint.
I will maybe consider trying this later this month and will report, if it works then
Cheers

Follow_and_Feel said:
That sounds good and I tried it, but unfortunately that's only a paid version feature. I don't know if I'm willing to pay, only that my script reads the artist, too. That seems to be a little exaggerated.
But thank you for the hint.
I will maybe consider trying this later this month and will report, if it works then
Cheers
Click to expand...
Click to collapse
Possibly rebooting a dead dog here, but you don't need to buy anything to get this to work with Google Play Music!
GPM outputs a broadcast intent on changes in Metadata.
For your profile context use event>intent received. Input the following for the intent details: Action: com.android.music.metachanged
And that's it!
In your say task linked to this intent you will have the following variables available to you:
%artist
%track
%album
%position (current position in ms)
%duration (song duration in ms)
%playing (returns true if playing, false if paused)
%rating (returns 0 if song is not rated, 1 if song is disliked and 5 if song is liked)
Do with those as you wish!
You could do something as simple as Say>%artist %track. Or you could do IF %rating ~ 1>media button (next) - this will then skip any tracks that you have given thumbs down to.
Hope this helps. Have fun!

middymizzle said:
Possibly rebooting a dead dog here, but you don't need to buy anything to get this to work with Google Play Music!
GPM outputs a broadcast intent on changes in Metadata.
For your profile context use event>intent received. Input the following for the intent details: Action: com.android.music.metachanged
And that's it!
In your say task linked to this intent you will have the following variables available to you:
%artist
%track
%album
%position (current position in ms)
%duration (song duration in ms)
%playing (returns true if playing, false if paused)
%rating (returns 0 if song is not rated, 1 if song is disliked and 5 if song is liked)
Do with those as you wish!
You could do something as simple as Say>%artist %track. Or you could do IF %rating ~ 1>media button (next) - this will then skip any tracks that you have given thumbs down to.
Hope this helps. Have fun!
Click to expand...
Click to collapse
Wow that's genius! Thanks a lot! Unfortunately and of course I've already bought GMMP Pro :laugh:
But thank you for that information
EDIT: This is working perfectly! Thank you so much I'm back on GPM

I tried your profile but doesn't work as the say command doesn't say the artist and the track name ... maybe I am wrong in something not written here? Which are the correct entries in the intent received context? I put only the action you wrote...
Inviato dal mio iPad utilizzando Tapatalk

Maurizio1953 said:
I tried your profile but doesn't work as the say command doesn't say the artist and the track name ... maybe I am wrong in something not written here? Which are the correct entries in the intent received context? I put only the action you wrote...
Inviato dal mio iPad utilizzando Tapatalk
Click to expand...
Click to collapse
It depends on that music app you're using.

MishaalRahman said:
It depends on that music app you're using.
Click to expand...
Click to collapse
I am using google play music
Inviato dal mio iPad utilizzando Tapatalk

Maurizio1953 said:
I am using google play music
Inviato dal mio iPad utilizzando Tapatalk
Click to expand...
Click to collapse
Try what the above user posted. Those broadcast intents should tell you the information you need.

Related

[Android 2.1+] Caller Name - knowing who is calling without looking at the screen.

Hi everyone,
Today I released an application I've been working on for the past week. I'll be adding new features, such as exclusion list for speak aloud's, etc. This works with all the contacts on the phone (Facebook, etc.).
https://market.android.com/details?id=com.denzilferreira.apps.callername
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Current version: 2.7
An application that gives you the name of who is calling/texting you right now, without you having to look at the screen.
NEW PRO FEATURES: voice on Bluetooth A2DP headsets and wired headphones, smoother and improved UI
ATTENTION: Facebook doesn't allow access to the profile pictures on the contacts because they failed to follow the Android standards (complain to them!). If you want pictures to show on the contact list, set the picture on your Google Contacts.
Free version:
- It won't lower the ringtone.
- It won't respect your sound profile. BUT you can use the widget to disable the caller name for convenience! (So that people don't complain about the phone talking while on a meeting).
- Will not let you know about messages received.
- Ads are displayed on the application.
- After each call, the phone will advertise Caller Name.
PRO version:
- Lowers ringtone after two seconds to say name aloud.
- Says who just texted you.
- Respects your sound profile, so no speaking if your phone is set to vibrate only/silent.
- Widget to disable call/text name without changing sound profiles.
- Selective call/text speech aloud on visible contacts on your phone.
- Type or speech to filter contacts using Google Voice Recognition.
- Letter-based filter for contacts.
- Swipe to toggle between search and contact list.
- No ads at all.
Changelog: 2.7
NEW: on the Free version, you now have access to the contact list, but you can't configure call/sms aloud.
FIXED: problem when device doesn't have an SDCard.
FIXED: in some situations, the ringtone wouldn't reset back to normal.
ENHANCED: faster loading of the contacts.
ENHANCED: minor GUI glitches.
Click to expand...
Click to collapse
How to use the widget?
Press-and-hold your finger on an empty space on the phone's main screen. Select Widgets and then Caller Name. That will add a new icon on the phone's main screen. You can use it to toggle the talk aloud functionality ON/OFF without changing your phone's ringtone volume (it automatically turns OFF is set to vibrate/silence).
If any problems, please JUST SEND ME AN EMAIL, I can better keep track of those than comments on the MarketPlace! Giving a bad review doesn't help me fix anything...
Thank YOU for the bug reports, they are extremely useful to improve the application's functionality. Before giving a bad review, please drop me an email so I can investigate what could possibly be wrong.
Thank YOU for the suggestions, they really help improving the application!
Let me know what you guys think, suggestions are also welcome!
BR,
¬D
nice app man!
k_flynn said:
nice app man!
Click to expand...
Click to collapse
Thanks!
I've updated the application today to fix a few bugs. I've also removed the ad's that would show up after the calls. So now it's pretty much like Pro, except for the smoothing of the voice when the call is ringing.
You can also uninstall the application and reinstall the application that previous licenses are restored automatically.
Enjoy!
New updates:
- Read aloud SMS senders, widget to turn it off without having to fiddle with sound settings.
Current version is 1.8!
great app!
Thanks
New version is out: 2.0
An application that gives you the name of who is calling/texting you right now, without you having to look at the screen.
NEW PRO FEATURES: voice search, text search, selective call/text aloud!
ATTENTION: Facebook doesn't allow access to the profile pictures on the contacts because they failed to follow the Android standards (complain to them!). If you want pictures to show on the contact list, set the picture on your Google Contacts.
Free version:
- It won't lower the ringtone.
- It won't respect your sound profile. BUT you can use the widget to disable the caller name for convenience! (So that people don't complain about the phone talking while on a meeting).
- Will not let you know about messages received.
- Ads are displayed on the application.
- After each call, the phone will advertise Caller Name.
PRO version:
- Lowers ringtone after two seconds to say name aloud.
- Says who just texted you.
- Respects your sound profile, so no speaking if your phone is set to vibrate only/silent.
- Widget to disable call/text name without changing sound profiles.
- Selective call/text speech aloud on visible contacts on your phone.
- Type or speech to filter contacts using Google Voice Recognition.
- No ads at all.
Was keen to try this app, downloaded and have not been able to get passed the opening screen before a popup tells me its not working and must force close or report.
HTC Sensation
Fixed that problem, current version 2.2
It was a silly mistake where I was trying to do Pro features on non-pro version... and also there was a problem with the keyboard not showing up on HTC Sense devices (blame HTC for their modifications on the framework...).
nice app man!
Bluetooth?
So far Pro version works good on my Bionic. But... if this would announce through my Bluetooth when connected instead of my phone speaker then it would truly be perfect. Any possibility of adding that feature?
toypwr said:
So far Pro version works good on my Bionic. But... if this would announce through my Bluetooth when connected instead of my phone speaker then it would truly be perfect. Any possibility of adding that feature?
Click to expand...
Click to collapse
That's an awesome suggestion. I'll add it to the list of things to-do. I also have on the list a letter-based selection of the contacts too, for easier filtering when driving.
yes it is a usefull application.
Meagain1 said:
Was keen to try this app, downloaded and have not been able to get passed the opening screen before a popup tells me its not working and must force close or report.
HTC Sensation
Click to expand...
Click to collapse
Tried again and all is well ! Thanks dferreria.
Will go Pro soon
Thanks, really appreciate it
I've modified the first post to add the wish-list and to-do's. Suggestions are welcome, if there is something you'd like me to consider for future versions.
Nice app, using the pro version.
I've noticed two issues though. 1) no name is announced if a contact only has a last name. ie: contacts first name is left blank. 2) on a test, I sent an sms from my 360 area code phone to my 352 area code phone and no name was announced.
Would it be safe to assume this happens simply due to the way my contacts are set up?
Sent from my SGH-T989 using xda premium
RRSpikes said:
Nice app, using the pro version.
I've noticed two issues though. 1) no name is announced if a contact only has a last name. ie: contacts first name is left blank. 2) on a test, I sent an sms from my 360 area code phone to my 352 area code phone and no name was announced.
Would it be safe to assume this happens simply due to the way my contacts are set up?
Sent from my SGH-T989 using xda premium
Click to expand...
Click to collapse
Hi there RRSpikes,
1) I can fix that issue, will be fixed on the next version. Just need to add a verification, nice catch!
2) I'm just guessing you don't have your own phone number on the other phone? The application doesn't say the name if it can't find the contact by the phone number.
Thanks!
dferreira said:
Hi there RRSpikes,
1) I can fix that issue, will be fixed on the next version. Just need to add a verification, nice catch!
2) I'm just guessing you don't have your own phone number on the other phone? The application doesn't say the name if it can't find the contact by the phone number.
Thanks!
Click to expand...
Click to collapse
For #1, cool, thanks.
For #2, both phones (Tmo SGS2 & Sprint SGS2/ETg4) have active service. Could the key to this be that both numbers are in my contact list under the same name? I doubt this will make a difference but I also forward my 360# to my 352# or vice versa depending on where I'm at.
Sent from my SGH-T989 using xda premium
RRSpikes said:
For #2, both phones (Tmo SGS2 & Sprint SGS2/ETg4) have active service. Could the key to this be that both numbers are in my contact list under the same name? I doubt this will make a difference but I also forward my 360# to my 352# or vice versa depending on where I'm at.
Click to expand...
Click to collapse
Hum... So both devices are SGS2 correct? I was thinking if it could be an API issue with a manufacturer. So let me see if I got it correctly, if you send from Tmo -> Sprint and vice-versa, it never says your name? Can you check if on the messages app, it appears your name? Is your personal contact a Google Contact or something else? Also, can you try asking someone to send you a text and see if it is working?
Thank you for helping me figuring this out!
great app
what do you think of adding...
read selected text
say the time (triggered by pressing vol up+down or cam button or whatever )
i cant think of anything more right now, my mind is bent on my UCAS.... hope you like my suggestions, sorry if they are a repeat, didnt have time to read the whole thread
PersianSphinx said:
what do you think of adding...
read selected text
say the time (triggered by pressing vol up+down or cam button or whatever )
Click to expand...
Click to collapse
Hi PersianSphinx,
Reading the message itself... I could do that, but it kinda is a bit out of scope to the Caller Name. The app is about letting you know from who, not the content. It is only my opinion, but if the phone would read my messages aloud, I wouldn't like it. Unless you are driving or something... I guess I could think about it if the device is connected with a BT headset.
Saying aloud the time, totally out of focus

[GUIDE][Difficulty: Intermediate] Determine Best Route for Daily Commute

Using the Google Maps API, we can input a starting address and a destination address and it will spit out the best route to take as well as the estimated travel time. And yes, it accounts for current traffic and road conditions!
Credits to redditor Golden-Death for figuring this out!
Prerequisites
A Google Maps API account. I will quote the instructions you need to set up the account and the API from the thread above:
First, get a google maps API account here: https://developers.google.com/maps/ Click "Get Started" and then click on Google Maps Android API. Then click on "Get a Key". Create a new project and name it whatever you want. Generate an API key, and take note of it. From here on out, I will refer to this key as YOUR_API_KEY.
Click on the "Overview" button on the left tab (of the API manager screen), then expand the Google Maps APIs section. Click on "Google Maps Directions API", and then enable it at the top. From here, you can also visit the USAGE tab to see how many requests you have made for directions, or visit the QUOTAS tab to limit your daily quota to the free amount so you never get billed (or, at least that's my understanding).
Click to expand...
Click to collapse
Instructions
Variables --> Variable Clear. Name %GMAPS.
Variables --> Variable Set. Name %start, and set it to your starting address. Replace any spaces with a + sign. For example,
Code:
1600 Pennsylvania Ave NW, Washington, DC 20500
becomes
Code:
1600+Pennsylvania+Ave+NW,+Washington,+DC+20500
Variables --> Variable Set. Name %destination, and set it to your destination address. Use the same convention as above.
Variables --> Variable Set. Name %api, and set it to your Google Maps API key.
Net --> HTTP Get. Set Serverort to
Code:
https://maps.googleapis.com:443
and set the Path to
Code:
/maps/api/directions/json?origin=%start&destination=%destination&travelmode=driving&departure_time=now&key=%api
Remember to input your API key above!
Variables --> Variable Set. Name %GMAPS to %HTTPD. This will set the output from the Google Maps API to a variable we will parse using a Javascriptlet.
Code --> Javascriptlet. Here is the code you need:
Code:
var routeSplit = JSON.parse(global('GMAPS'));
var routetraffic = routeSplit.routes[0].legs[0].duration_in_traffic.text;
var routename = routeSplit.routes[0].summary;
Alert --> Say. Text: Hello, you should take %routename to get to your destination the fastest. Expected travel time is %routetraffic.
How do you use this task, you ask? You can use it as an exit task when disconnecting from your home wifi. You can use it to trigger when connecting to your car's bluetooth. You can use a location trigger when leaving your home. You can use an NFC tag. The choice is yours.
Here's a screenshot of the task:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I've attached an XML of the task below. You can import it by moving it to /sdcard/Tasker/tasks, then opening Tasker and long-pressing on the tasks tab up top then pressing import.
You are fast becoming my hero of this week. ?
Working like a charm. Thanks?
MishaalRahman said:
Using the Google Maps API, we can input a starting address and a destination address and it will spit out the best route to take as well as the estimated travel time. And yes, it accounts for current traffic and road conditions!
Click to expand...
Click to collapse
Thanks for the contribution! This is so odd, I was just working on this yesterday evening. What I was trying to do, instead, was use custom routes from home to work (we all know that shortcut that brings us around the one traffic light or ramp that backs up) ... Google Maps indicates many of these shortcuts are in fact faster during traffic, but doesn't route using these because it involves counterintuitive maneuvering (for example, going north and then taking a u-turn to go south, instead of taking the south ramp which is sometimes backed up for miles). But I digress...
What I tried to do is create custom routes in Google Maps by dragging the route to where I wanted it to be, then using a HTTP GET to pull the html, a variable split to capture the travel time in minutes with traffic, and then printing it as a notification.
The goal being to have an on-demand decision maker before I hit the first option to split off onto a different route, then again before I hit the second option, and so on.
All I got was garbage returned, and truth be told it's been a decade since I wrote anything entirely in code.
Any suggestions?
krisjag said:
Thanks for the contribution! This is so odd, I was just working on this yesterday evening. What I was trying to do, instead, was use custom routes from home to work (we all know that shortcut that brings us around the one traffic light or ramp that backs up) ... Google Maps indicates many of these shortcuts are in fact faster during traffic, but doesn't route using these because it involves counterintuitive maneuvering (for example, going north and then taking a u-turn to go south, instead of taking the south ramp which is sometimes backed up for miles). But I digress...
What I tried to do is create custom routes in Google Maps by dragging the route to where I wanted it to be, then using a HTTP GET to pull the html, a variable split to capture the travel time in minutes with traffic, and then printing it as a notification.
The goal being to have an on-demand decision maker before I hit the first option to split off onto a different route, then again before I hit the second option, and so on.
All I got was garbage returned, and truth be told it's been a decade since I wrote anything entirely in code.
Any suggestions?
Click to expand...
Click to collapse
One thing you could try is to run the multiple times and set the destination address to a different intermediate point on your route, so the best route will be determined from each marker point. For it to activate as soon as you reach that point on the map you would need a location context using geofences such as with AutoLocation.
MishaalRahman said:
One thing you could try is to run the multiple times and set the destination address to a different intermediate point on your route, so the best route will be determined from each marker point. For it to activate as soon as you reach that point on the map you would need a location context using geofences such as with AutoLocation.
Click to expand...
Click to collapse
Thanks... I read the source link a little deeper and it seems they're recommending something similar, doing individual routes and using Tasker to add the time (reported in seconds) and round into minutes. If anyone can think of a simpler way not involving an API, or that just uses HTTP GET to strip out the travel time using "via" points through Google Maps through a browser, I'm all ears! (apparently you can't do waypoints, that borks the traffic time report since it factors in a "stop" at each waypoint; you can't use via points, since you need to have at least one waypoint when using that).
This seems cool but forgive me if I'm missing something here. How is this different from what Gmaps already does? When I am about to leave for work, I open google now and the card with my drivetime to work is already there on top. Tapping it opens maps where it usually (~95% of the time) is already set to what it perceives to be the fastest route based on current traffic conditions. Totally honest question, and I'm certainly not trying to downplay or discredit the work of the task's creator. I'm just failing to see what this is solving or improving upon.
tykob said:
This seems cool but forgive me if I'm missing something here. How is this different from what Gmaps already does? When I am about to leave for work, I open google now and the card with my drivetime to work is already there on top. Tapping it opens maps where it usually (~95% of the time) is already set to what it perceives to be the fastest route based on current traffic conditions. Totally honest question, and I'm certainly not trying to downplay or discredit the work of the task's creator. I'm just failing to see what this is solving or improving upon.
Click to expand...
Click to collapse
Many people don't use Google Now because of battery issues
Some people also won't use Google Now because of how invasive it is towards personal privacy.
Sent from my LG-D801 using Tapatalk
tykob said:
This seems cool but forgive me if I'm missing something here. How is this different from what Gmaps already does? When I am about to leave for work, I open google now and the card with my drivetime to work is already there on top. Tapping it opens maps where it usually (~95% of the time) is already set to what it perceives to be the fastest route based on current traffic conditions. Totally honest question, and I'm certainly not trying to downplay or discredit the work of the task's creator. I'm just failing to see what this is solving or improving upon.
Click to expand...
Click to collapse
Google Now doesn't always give me the little ancillary improvements that I know from regional familiarity, it only gives me the "macro" routes. For instance, getting onto the state highway from the local access road, there is a ramp that backs up for about a half mile and goes really slow because of the merge. To circumvent it, I take the opposite direction on the highway and flip around at the next exit. It shaves 5 minutes off my commute but it's not something Google Maps or Google Now will recognize.
It also doesn't give me an option to refresh the commute time when I hit each geographic decision point, without just using Navigation outright.
I just tried this, but I'm getting the following error (on GMAPS variable):
"This API project is not authorized to use this API. Please ensure that this API is activated in the API's Console" I doubled check my API key and seems right. Also, it looks active in the API's console. Any ideas what is going on??
Thanks
EDIT: I found out the problem: On the API manager console you must activate also the "Google Maps Directions API"
Hmmm. This is looking good, but I can't quite get it to work - I've put a popup at the end to display %routename, but it always displays actually "%routename" rather than the value. Does does the variable in the javascript need making public somehow?
TangerineTractor said:
Hmmm. This is looking good, but I can't quite get it to work - I've put a popup at the end to display %routename, but it always displays actually "%routename" rather than the value. Does does the variable in the javascript need making public somehow?
Click to expand...
Click to collapse
When you go to your Google console, Click on the "Overview" button on the left tab (of the API manager screen), then expand the Google Maps APIs section. Click on "Google Maps Directions API", and then enable it at the top. Console will generate a key when you enable it. Use this key, and the task will work.
iamronin said:
When you go to your Google console, Click on the "Overview" button on the left tab (of the API manager screen), then expand the Google Maps APIs section. Click on "Google Maps Directions API", and then enable it at the top. Console will generate a key when you enable it. Use this key, and the task will work.
Click to expand...
Click to collapse
Got maps android and maps directions APIS both enabled. Still don't get anything in the variable.
Awesome. I've been playing around with this a lot and I got it to work exactly how I want it to for my 20~40 minute commute to work.
I have the task trigger whenever I connect to my car's bluetooth, with the if statements matching the certain time of the day, and day of the week (when I usually commute to work) so it doesn't trigger when I just go out to get groceries or run errands, etc.
I also modified it a little bit as well,
I added Clear %LOC, then Get Location and changed %start variable set to %LOC instead of a predefined starting address so that where ever I am I can get updated travel times, since I might have to stop by some place before I reach my destination.
No modifying elsewhere needed outside of that, all the actions you provided still take it as a proper starting point.
Thanks a lot for this. I've been looking for something like this for months. Really Appreciate it :good:
This works and is really nice. However, the travel time that it calculates (15 minutes) is lower than Google maps (19 minutes). Is anyone else getting the discrepancy? I just want make sure it accounts for traffic.
Great idea and thanks for posting a thorough guide! One tidbit for me is that I'm trying to get this to work on a public transport commute. I thought that maybe it could be as easy as changing the travel mode in the path of step 5 to transit but that didn't change the output of the alert. Any ideas?
TangerineTractor said:
Got maps android and maps directions APIS both enabled. Still don't get anything in the variable.
Click to expand...
Click to collapse
Did you get this fixed? I am having the same issue. Notification returns "%routetraffic " & "%routename"
Thank you so much for sharing. I actually made a video with your steps and I added an auto notification
You guys can check out my YouTube channel. Here is the direct link to the video,
I was getting the same error/issue, and then I realized I missed step 6 (set %GMAPS to %HTTPD). It worked after that.
Savetheknot said:
Did you get this fixed? I am having the same issue. Notification returns "%routetraffic " & "%routename"
Click to expand...
Click to collapse
Having the same problem.

Controlling my phone with Tasker while riding my motorbike

Hey all, I'm wondering if anyone here can help me solve a problem I'm having. I think I can use Tasker to accomplish my goal but there is a missing piece that I hope you could help me with.
I listen to audiobooks during my commute to and from work on my motorcycle. There are tasker commands that I can pass to the audio book player (Smart Audiobook Player) but I want to be able to start and stop the audio book player without taking my phone out of my jacket and starting it or stopping it manually. Getting to my phone is no easy matter because of the jacket, gloves and misc straps involved with riding and also I could only do it only when pulled to the side of the road or parked.
Do you know if there's a way to pass some sort of command to my phone wirelessly? The only thing I could think of was to use an NFC tag in my glove and pass it over the area where I keep my phone. But I haven't tested that yet and I'm not sure if it will work through leather/ fabric. Also it would mean that I couldn't switch gloves or my jacket either.
Ideally, there would be a bluetooth (or some other protocol) button that I'd press to be picked up by the phone.
Any ideas? Thanks in advance...
dq
NFC - need screen ON.
Buy
http://s.aliexpress.com/bIFNFfAb
(from AliExpress Android)
or the like for this. Use as a switch. Smart AudioBook supports intents.
Click
1. Variable add 1 [random 2] %Trigger
2. Play [if %Trigger = 1]
3. Stop/Pause [if %Trigger = 0]
don quixada said:
Ideally, there would be a bluetooth (or some other protocol) button that I'd press to be picked up by the phone.
Any ideas? Thanks in advance...
dq
Click to expand...
Click to collapse
AutoVoice > BT Button Pressed context
Sent from my SM-G928C using Tapatalk
don quixada said:
The only thing I could think of was to use an NFC tag in my glove and pass it over the area where I keep my phone. But I haven't tested that yet and I'm not sure if it will work through leather/ fabric.
Click to expand...
Click to collapse
NFC should work fine trough any fabric as long as its not metallic.
frrancuz. said:
NFC - need screen ON.
Click to expand...
Click to collapse
NFC can work with the phone locked and screen turned off by modding the NFC.apk or even simpler by using the Xposed framework + the "NFC LockScreenOff Enabler" module
I like the bluetooth remote idea. I could mount it on my bike somewhere. What about this?
Bluetooth Camera Remote.
It is a little simpler to use because there are less buttons (also it is cheaper). Or would it only control the camera? I'm not sure how bluetooth remotes actually work and what commands they give...
dq
@alray
Xposed mod do not work on LL and next. NFC app modding is not easy..
@don quixada
i do not know, i did not use [button only for camera]
frrancuz. said:
@alray
Xposed mod do not work on LL and next.
Click to expand...
Click to collapse
Does "LL" stands for Lollipop or you hit the wrong key twice and meant MM? Cause i'm currently running this Xposed mod on my Lollipop 5.0.2 phone without any issue... Might not work on MM 6.0 but its for sure working fine on Lollipop.
NFC app modding is not easy..
Click to expand...
Click to collapse
So because its not easy it shouldn't be done/tried?
http://forum.xda-developers.com/showpost.php?p=59941326&postcount=497
Anyway, Looks like OP prefer to go with bluetooth :good:, just saying that its also possible to go NFC, and its far from being impossible/hard to do. But yes, bluetooth will probably be an easier way to achieve this.
frrancuz. said:
NFC - need screen ON.
Buy
http://s.aliexpress.com/bIFNFfAb
(from AliExpress Android)
or the like for this. Use as a switch. Smart AudioBook supports intents.
Click
1. Variable add 1 [random 2] %Trigger
2. Play [if %Trigger = 1]
3. Stop/Pause [if %Trigger = 0]
Click to expand...
Click to collapse
hi, let's just say everything else doesn't matter, how do I send intent to the player?
Of course, if the OP doesn't use intent, he can try AutoInput for the task.
Settings - help - functions
[spoil]
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
[/spoil]
actually, if you just need the simple play, pause, you can use a shake event, so when you knock the phone from outside the pocket, Tasker will register it as shaking in certain direction, and do the task.
For this to work, you will probably need condition:
- proximity (in the pocket)
- shake backward forward, sensitivity medium-high (test it out)
-app running: smart audiobook player, so it doesn't always trigger
- maybe also only when headset/certain Bluetooth headset plugged in
if there are too many state conditions and Tasker refuses to add all of them, try putting them in a separate profile, which activated an 'audiobook on the road' mode/variable. Then use this variable with the shake event in the main profile.
I find this trick really helpful when a certain profile needs too many conditions.
Shaking the phone is a really good idea in most cases. Unfortunately I don't think that it would work on a motorcycle what with the bike vibration, bumps in the road, railway tracks and constant movement by the rider.
I'm going to play around with my selfie-stick bluetooth to see if I can get any positive results before ordering anything.
Personally I wish I could use some sort of RFID as I think that would be the most surefire method...
dq
don quixada said:
Hey all, I'm wondering if anyone here can help me solve a problem I'm having. I think I can use Tasker to accomplish my goal but there is a missing piece that I hope you could help me with.
I listen to audiobooks during my commute to and from work on my motorcycle. There are tasker commands that I can pass to the audio book player (Smart Audiobook Player) but I want to be able to start and stop the audio book player without taking my phone out of my jacket and starting it or stopping it manually. Getting to my phone is no easy matter because of the jacket, gloves and misc straps involved with riding and also I could only do it only when pulled to the side of the road or parked.
Do you know if there's a way to pass some sort of command to my phone wirelessly? The only thing I could think of was to use an NFC tag in my glove and pass it over the area where I keep my phone. But I haven't tested that yet and I'm not sure if it will work through leather/ fabric. Also it would mean that I couldn't switch gloves or my jacket either.
Ideally, there would be a bluetooth (or some other protocol) button that I'd press to be picked up by the phone.
Any ideas? Thanks in advance...
dq
Click to expand...
Click to collapse
don't most bluetooth headphones already have a button that pauses and plays audio? every one ive ever owned has, and i've had at least 12
I think his Bluetooth one would be inside the helmet, and thus difficult to get to. In case he has it integrated onto the helmet already, this wouldn't be a problem.
I use earplug headphones (Plugfones) because of the wind and engine noise. They are wired and in my helmet and neither have controls on them. There was recently a new pair released from Plugfones that are bluetooth but they are too expensive and you'd still need some sort of way to control them.
Omg... you're making this wayyyy harder then it needs. Get new wired head phones. Most have a mic/button when music is playing if you click it it pauses!! For hell sakes. Making problems up
You could use Physical Button Music Control from Xposed. With this you could customise all actions from headset button.

[App][5.1+][Alpha] AnyAutoAudio - Use any audio app in Auto

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
AnyAutoAudio
So I was tired of not being able to use the audio apps I normally use in Auto and decided to try and do something about it. This app is the result :fingers-crossed:
How does it work?
By using the notification listener permission, the app is able to access the media session of any audio app that is running. This is then passed to Android Auto, which makes it possible to control as any normal Auto app. This also means that it is necessary to run the audio app(s) first before running Auto.
I have several ideas for future features, but would like some feedback first and get rid of bugs. Take it for a spin!
Howto:
- Setup AnyAutoAudio from the app
- Open and run music app(s)
- Run Android Auto from phone or dashboard
Latest progress update & ideas for the future:
https://forum.xda-developers.com/showpost.php?p=72587291&postcount=67
Download:
https://labs.xda-developers.com/store/app/dk.jonske.AnyAutoAudio
Install AnyAutoAudio directly from apk:
If downloading the APK directly you need to allow unknown sources in Auto,
- In the Android Auto app, tap the Hamburger menu.
- Tap About.
- Tap About Android Auto header 10 times, until a toast appears thar says "Developer mode enabled". Now you can access developer mode by selecting the overflow menu dots on the top right of the handheld screen.
- Select Developer settings from the overflow menu and check unknown sources.
Source: https://developer.android.com/training/auto/testing/index.html#phone
Release notes
0.1.0
- Startup tutorial
- new settings interface
- FAQ
- Feedback
- Analytics
- Pinned apps (browsing)
https://forum.xda-developers.com/showpost.php?p=73426860&postcount=108
0.0.4
- No more need for app list! Just run the music apps and open Auto.
- Issue with controls not responding should be fixed
- Lots of bug fixes
0.0.3
- Apps already with Auto implementation is filtered out
- Queue implementation
- If audio app is destroyed, just pause
- Smaller app size
- Error include audio app name
0.0.2
- System apps now allowed in app selection.
- Basic voice control implementation. So far only "play music" seems to work ("pause", "play" etc. fails on Google's side)
0.0.1
- First alpha release
- Basic control and metadata
Hi,
Tested and working with "Google Play Books". :good:
I suggest to try to support the FM Radio App.
Perhaps, you feel I'm fool but I like to check one DAB Radio App running in my phone... my car doesn't have DAB radio.
manos78 said:
Hi,
Tested and working with "Google Play Books". :good:
I suggest to try to support the FM Radio App.
Perhaps, you feel I'm fool but I like to check one DAB Radio App running in my phone... my car doesn't have DAB radio.
Click to expand...
Click to collapse
Great to hear it works!
Do you have a link for the app? It should work as long as the app is playing audio the standard way in android, so I'll have a look
jvvpc said:
Do you have a link for the app? It should work as long as the app is playing audio the standard way in android, so I'll have a look
Click to expand...
Click to collapse
For the RADIO (FM) it's the stock FM App... Try it in your phone, it isn't detected in the list of Audio Apps.
Regarding the DAB App it's this:
http://play.google.com/store/apps/details?id=com.ex.dabplayer
Please, continue improving this great App!
For example, your App can send button events to the controlled App? Back, Play/Stop, Next...
This is the app:
http://androidstereo.mobile.eu.org/default-apps/2.7.4/com.tw.radio_78cc.apk
manos78 said:
For the RADIO (FM) it's the stock FM App... Try it in your phone, it isn't detected in the list of Audio Apps.
Regarding the DAB App it's this:
http://play.google.com/store/apps/details?id=com.ex.dabplayer
Please, continue improving this great App!
For example, your App can send button events to the controlled App? Back, Play/Stop, Next...
Click to expand...
Click to collapse
Ahh, the list is filtering out system apps. I will include them in the next update
There shouldn't be any problems with the DAB app. Have you tried it?
Yes, it will handle all button events like play, pause, next etc. I will look into if it can take special buttons some apps use
Jusrt tested with local files and vlc and this works well. Its a Great idea.. Ill be a really happy camper if u can get it to pull the audio from firefox and chrome.
Youtube/netflix/hulu etc could all be nice too. But the browsers obviously would be top priority cuz then u could do anything (live tv news etc etc) in my opinion.
Regardless..Great job and idea!
keep at it. I Will report back after more experience with it.
jvvpc said:
Ahh, the list is filtering out system apps. I will include them in the next update
Click to expand...
Click to collapse
Great! Waiting for it! :fingers-crossed:
jvvpc said:
There shouldn't be any problems with the DAB app. Have you tried it?
Click to expand...
Click to collapse
No. It's a wish for the future... if your tool works, then I'll purchase the dongle.
jvvpc said:
Yes, it will handle all button events like play, pause, next etc. I will look into if it can take special buttons some apps use
Click to expand...
Click to collapse
It will be interesenting if you introduce some additional interaction with the audio app. :good:
Version 0.0.2 is now released, with system apps included and basic voice control.
Mac31284 said:
Jusrt tested with local files and vlc and this works well. Its a Great idea.. Ill be a really happy camper if u can get it to pull the audio from firefox and chrome.
Youtube/netflix/hulu etc could all be nice too. But the browsers obviously would be top priority cuz then u could do anything (live tv news etc etc) in my opinion.
Regardless..Great job and idea!
keep at it. I Will report back after more experience with it.
Click to expand...
Click to collapse
As i have now included system apps Chrome works. Just tested it with a radio website The video apps wont run i the background so we cant use Android Auto at the same time, this is a Android limitation. I have read reports that some find it possible to open Youtube in Firefox though?
manos78 said:
Great! Waiting for it! :fingers-crossed:
No. It's a wish for the future... if your tool works, then I'll purchase the dongle.
It will be interesenting if you introduce some additional interaction with the audio app. :good:
Click to expand...
Click to collapse
See if the Radio FM app works now
jvvpc said:
Version 0.0.2 is now released, with system apps included and basic voice control.
See if the Radio FM app works now
Click to expand...
Click to collapse
Installed! Thank you!
Results:
- App FM don't show in the list. :crying:
- Voice control: Please, explain how to use it.
- No bugs detected. :good:
Regards.
manos78 said:
Installed! Thank you!
Results:
- App FM don't show in the list. :crying:
- Voice control: Please, explain how to use it.
- No bugs detected. :good:
Regards.
Click to expand...
Click to collapse
If a app dosent show up, it is because it is not made in the standard way Android handles media. Maybe try a different FM app from the Play store? Just find one that has a notification widget, then it should work. I dont have fm in my phone so cant test it myself
For the voice control, only "play music" seems to work ("pause", "play" etc. fails on Google's side). This is a requirement from Google, so couldnt update the app without including this, but will expand it furter like "Play Chrome on AnyAutoAudio".
jvvpc said:
If a app dosent show up, it is because it is not made in the standard way Android handles media. Maybe try a different FM app from the Play store? Just find one that has a notification widget, then it should work. I dont have fm in my phone so cant test it myself
For the voice control, only "play music" seems to work ("pause", "play" etc. fails on Google's side). This is a requirement from Google, so couldnt update the app without including this, but will expand it furter like "Play Chrome on AnyAutoAudio".
Click to expand...
Click to collapse
For most android head units you can not use a different FM radio app as far as i'm aware. The DAB app does not show up either which is a big shame, oh well.
jvvpc said:
If a app dosent show up, it is because it is not made in the standard way Android handles media. Maybe try a different FM app from the Play store? Just find one that has a notification widget, then it should work. I dont have fm in my phone so cant test it myself
Click to expand...
Click to collapse
The stock FM Radio in my Moto G4 has "a notification widget". It's like any other audio app.
Please, can you provide some technical info about how you search for Apps? Can you include some logging tool inside your App?
jvvpc said:
For the voice control, only "play music" seems to work ("pause", "play" etc. fails on Google's side). This is a requirement from Google, so couldnt update the app without including this, but will expand it furter like "Play Chrome on AnyAutoAudio".
Click to expand...
Click to collapse
Great! You will start the "AudioApp" when the command "Play [AudioApp] on AnyAutoAudio" is done, or will be required to have the AudioApp already open?
Dec64 said:
For most android head units you can not use a different FM radio app as far as i'm aware. The DAB app does not show up either which is a big shame, oh well.
Click to expand...
Click to collapse
Ahh so its a unit with Android onboard? Well it should still handle the apps the same way. The way this apps works is by connecting to the MediaSession that an audio app should create, if you follow Android Docs. But apps can still play audio without this, and some does so. I have tried it with different audio apps, and so far have not found other ways
manos78 said:
The stock FM Radio in my Moto G4 has "a notification widget". It's like any other audio app.
Please, can you provide some technical info about how you search for Apps? Can you include some logging tool inside your App?
Great! You will start the "AudioApp" when the command "Play [AudioApp] on AnyAutoAudio" is done, or will be required to have the AudioApp already open?
Click to expand...
Click to collapse
My fault I assumed that audio apps with notification used standard implementation, but not all does have I found. Also see answer above
For the filtering it works by finding apps that use the intent "ACTION_MEDIA_BUTTON". This is what an audio app is required to use to be able to handle volume and playback control, so any audio app using MediaSession will have this. Also in 0.0.3 it will filter out apps that already have Android Auto implementation
EDIT: Answer to last question
You will still need to have the audioapp already opened. I might be able to change that for head units but for the Auto app I can't as calling new apps will open ontop and that violates the rules..
jvvpc said:
Ahh so its a unit with Android onboard? Well it should still handle the apps the same way. The way this apps works is by connecting to the MediaSession that an audio app should create, if you follow Android Docs. But apps can still play audio without this, and some does so. I have tried it with different audio apps, and so far have not found other ways
My fault I assumed that audio apps with notification used standard implementation, but not all does have I found. Also see answer above
For the filtering it works by finding apps that use the intent "ACTION_MEDIA_BUTTON". This is what an audio app is required to use to be able to handle volume and playback control, so any audio app using MediaSession will have this. Also in 0.0.3 it will filter out apps that already have Android Auto implementation
EDIT: Answer to last question
You will still need to have the audioapp already opened. I might be able to change that for head units but for the Auto app I can't as calling new apps will open ontop and that violates the rules..
Click to expand...
Click to collapse
So it's not possible to get the FM radio apps in question to work at all?
jvvpc said:
EDIT: Answer to last question
You will still need to have the audioapp already opened. I might be able to change that for head units but for the Auto app I can't as calling new apps will open ontop and that violates the rules..
Click to expand...
Click to collapse
Hi,
Perhaps a root mode to launch an App as background can be a temporal alternative.
What you think?
Dec64 said:
So it's not possible to get the FM radio apps in question to work at all?
Click to expand...
Click to collapse
Well the problem is not in the FM itself, you might be able to find other FM apps that will work. I will continue to seek solutions that will work across most apps
manos78 said:
Hi,
Perhaps a root mode to launch an App as background can be a temporal alternative.
What you think?
Click to expand...
Click to collapse
That's a good idea! I will add it to my todo list, but will focus on the basic features for now. I will look into it when that is working properly
:good:
Also has anyone tried it with a head unit yet? When I use the emulator, the icons on the list of chosen apps in Auto disappears after first load. Not sure if this is a emulator error or in the app, as i don't get this on my phone
Can you please pm version .02 as that allowed spotify to show up. For some reason after the 2.3 update to android auto my spotify no longer shows up at all. This app was only the way for my spotify to work.
App installed... works as promised. Very useful, thanks! Will test next versions for sure...
@chocolatet: as I already wrote in other thread, to restore Spotify, you must install that app from adb shell (not from Play store).

[APP][5.0+][Alpha] AA Passenger - Stream audio, control nav, show pics

AA Passenger
https://github.com/martoreto/aapassenger
What's this
With this app you can have two phones: one is the driver's phone, running Android Auto as usual.
Then you can have another one, e.g. handled by passenger. Passenger can then do 3 things:
play any music via car speakers (for now this requires root on passenger's device)
find some destination in Google Maps or another maps app and send it to Android Auto to navigate there
display pictures on the Android Auto screen (e.g. display how the hotel you're driving to looks like)
What's new
1.9-alpha9
AA Passenger: fixed Oreo crash
AA Passenger: fixed casting volume
1.9-alpha8
audio streaming, without root! (experimental)
audio streaming, without passenger app! (experimental)
works also with Hotspot active on the driver's device
AA Passenger now also available from Play Store
driver's app renamed to AA 2nd Seat
now compatible with Android 5.0 Lollipop
many bugs squashed
support for an NFC tag which launches or installs AA Passenger app
note that both driver's and passenger's apps must be updated to work together
Installation
https://github.com/martoreto/aapassenger/blob/master/README.md#installation
Screenshots
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Can you describe some more what exactly you can do with this and how?
Can we install this android auto sdk somehow and use this?
Is it possible to have android navigation eg navigon running to a smartphone to display in android auto screen?
Thanks,
Sent from my SM-T700 using XDA-Developers Legacy app
Thanks for bringing additional functionality to AA!
I hope your SDK will bring more devs support for AA apps
sosimple said:
Can you describe some more what exactly you can do with this and how?
Click to expand...
Click to collapse
You mean this app or SDK? I assume app.
With this app you can have two phones: one is the driver's phone, running Android Auto as usual.
Then you can have another one, e.g. handled by passenger. Passenger can then do 3 things:
find some destination in Google Maps or another maps app and send it to Android Auto to navigate there
display pictures on the Android Auto screen (e.g. display how the hotel they're driving to looks like so the driver would easily find it)
play any music via car speakers (for now this requires root on passenger's device)
sosimple said:
Can we install this android auto sdk somehow and use this?
Click to expand...
Click to collapse
The SDK itself is for developers. It allows writing new Android Auto apps.
It rather won't help much in modifying existing apps to run on AA, as the logic behind AA apps is quite different than for normal apps.
The SDK is used like any other Android library.
I published an example demo project (linked in README) which shows how.
sosimple said:
Is it possible to have android navigation eg navigon running to a smartphone to display in android auto screen?
Click to expand...
Click to collapse
It is somewhat possible, for example by creating a new Andoid Auto app which mirrors the screen of the phone on the car screen and then somehow circumvents the fact that Android Auto displays its own graphics on the phone screen.
It's also possible to modify an open-source navigation app (I'm experimenting with OsmAnd recently) and implement the Android Auto functionality.
Many thanks for description. Very good. I would pay for an app mirroring passenger screen to android auto screen.. (showing anything passengers screen shows, video, navigation, etc).
I think many others would like this, if anyone could implement it..
Sent from my SM-T700 using XDA-Developers Legacy app
Any ideas for what other things than navigation, watching videos while stopped and dangerously distracting the driver while driving would this be useful?
Hi Martoreto
Thank you for your work and for the SDK. I tried to you your passenger app now. But I have to say I failed. I don't have rooted my phones yet, but you wrote to send (push) pictures should be possible right? Currently for me it is just possible to send a point in maps. Other than that if I try to send a picture with printscreen it shows "sent to Android Auto" but in Android Auto happens nothing than 1 second of black mirror. I think to push pictures no root is needed right?
Thanks for replay
Sissi1991 said:
Hi Martoreto
Thank you for your work and for the SDK. I tried to you your passenger app now. But I have to say I failed. I don't have rooted my phones yet, but you wrote to send (push) pictures should be possible right? Currently for me it is just possible to send a point in maps. Other than that if I try to send a picture with printscreen it shows "sent to Android Auto" but in Android Auto happens nothing than 1 second of black mirror. I think to push pictures no root is needed right?
Thanks for replay
Click to expand...
Click to collapse
Hi @Sissi1991, thanks for trying the app.
I see good news that you established the wireless connection successfully, which was one of the major concerns I had with the app.
You're right, sending photos should work without root. I saw another report in the SDK thread, when the example app could behave similarly.
Just to make sure it's the same: when you take the screenshot, the screen on Android Auto becomes black for about a second, and then appears the AA home sceen?
Also, does the same happen when trying to send some other picture than a screenshot (like Gallery -> <some photo> -> Share -> Send to Android Auto)?
A note about rooting: it's required only on passenger's device (to make audio work).
@Sissi1991, feel free to try the new release:
https://github.com/martoreto/aapassenger/releases/tag/0.9-alpha2
Couldnt make it work also, same problem as Sissi (tested the previous 0.9 alpha 1 version only)
If sending a picture from gallery, it gives an error 'error resizing image'
Kill Me said:
Couldnt make it work also, same problem as Sissi (tested the previous 0.9 alpha 1 version only)
If sending a picture from gallery, it gives an error 'error resizing image'
Click to expand...
Click to collapse
Ok, this looks like another issue and alpha 2 rather won't make any difference here.
This error shows on the passenger's device, right?
If possible, please PM me links to:
- Android bugreport captured after this error (Settings -> Developer options -> Take bug report)
- The picture which failed to send
Thanks for trying this out.
Thanks for developing such a great idea
Don't know what I am missing, I can't pair my two phones, even though they are connected through wifi direct, the app apparently can't see this connection :s
Enviado de meu Nexus 6P usando Tapatalk
@Sissi1991, @Kill Me, here's 0.9-alpha3 with "error resizing image" fixed. Give it a try!
https://github.com/martoreto/aapassenger/releases
bladerj said:
Don't know what I am missing, I can't pair my two phones, even though they are connected through wifi direct, the app apparently can't see this connection :s
Click to expand...
Click to collapse
Yeah, I expected that Wifi Direct may have some connection issues. Nevertheless, please do this:
On driver's device open "AA Remote Settings" -> "Enable discovery".
On passenger's device open "AA Passenger"; if the setup wizard shows up, go to the "Pairing" page.
Wait 5 minutes.
On both devices, capture Android bug reports, upload them somewhere and PM me the links.
Thank you, ill give it a try.
Pairing through Wifi direct isnt indeed ideal and it takes a while to get connected, i get why using 'passenger' smartphone, but as the driver is driving the passenger could use the connected AA phone i think
@martoreto installed and tested new version! Works perfect. Keep on your good work!
Kill Me said:
but as the driver is driving the passenger could use the connected AA phone i think
Click to expand...
Click to collapse
Just my 3 cents on this idea: some things can be done with this AA-connected phone, and this doesn't need any special app mostly.
I don't know how it is on other phones, but on my HTC One M8 I can open any app even when AA is connected using tricks like opening notifications drawer, going to Settings, Apps etc.
But even then Maps can't be open on both AA and the screen. It can't render at the same time to 2 destinations.
Then, fiddling with the cable can easily disconnect the nav.
That's why I go with the idea of using the passenger's phone, with his/her music library, maps favourites, bookmarks, whatever context etc., to make car travel a more "together" experience.
Let me announce a new major release: 1.9-alpha8
It has two new main features, namely:
Audio streaming without root, as rooting was rather a major blocker for
this feature to be useful.
Hotspot mode. Now the apps don't rely on Wi-fi Direct only (but it's still supported).
They will work also if the passenger's device is connected to the hotspot started
on the driver's device.
Full release notes:
audio streaming, without root! (experimental)
audio streaming, without passenger app! (experimental)
works also with Hotspot active on the driver's device
AA Passenger now also available from Play Store
driver's app renamed to AA 2nd Seat
now compatible with Android 5.0 Lollipop
many bugs squashed
support for an NFC tag which launches or installs AA Passenger app
Note that both driver's and passenger's apps must be updated to work together.
Enjoy!
1.9-alpha9
AA Passenger: fixed Oreo crash
AA Passenger: fixed casting volume
Deleted

Categories

Resources