story
When I leave my wifi hotspot it turns on bluetooth.
When/if it connects to my car it opens Spotify (but it doesnt start playing yet before I hit play on the steering weel).
If it's in my car's handler (there's a NFC tag there) it assumes I want navigation and it also opens Waze.
When it disconnects it turns on wifi again and keep it on for a few minutes and shut it down if it's not connected to anything.
I'm sure android auto can do all this nowadays, but my car has a 7-years-old ford-sync system, and that's bluetooth only.