I have some sound that plays during a phone call on my app. Its hard to test this on the desktop head unit but i'd like to know on a real device if i simply plug the phone into the car will my audio automatically play to the car speakers ? I notice when i use the DHU that it already sets the phone on speaker so im assuming it routes to the cars speakers but i wanted to make sure.
So to be clear, imagine i have an app that plays music based on some trigger, if i plug the phone into the car and execute that trigger will the audio get routed to the speakers of the car without the app needing to do anything ?
I plugged my phone into my Pioneey NEX head unit and the only audio that came through the head unit was that of the applications that support Android Auto. Any additional sounds (e.g. notifications not associated to an Android Auto application) were played by the phone itself.
Hope this helps.
dave
Related
I installed a cheap chinese Android based car head unit in my 15 year old second hand car, with probably Android 8 or 9 (maybe even a fake version where the version shown is higher than is installed). For most things it works. Sound output is good, bluetooth works, Wifi works, Google apps like Maps, Chrome, Youtube all work.
I have an external mic attached to it. There is a sound recording app, which records the sound when I use this mic. I can replay the sounds, so far so good. So here's the thing: the phone app does not pick up this mic, and also no sound on the tiny mic that's built in. Same for Google Voice Search, it just doesn't pick up anything. When I call someone, they don't hear me speaking at all.
My question is: how do I go about debugging it? Is there some kind of app that I can use to diagnose, which will at least show device mapping, or show signals like in Windows?
I am in a preliminary stage of writing a small, personal utility app and I have read quite a lot of about Bluetooth and Android Developer information about Bluetooth. I am just trying to understand what I want to implement is possible or not.
I would like to route audio and mic from my android phone to my car's Head Unit so I can use the car's mic and speakers. If I have a radio channel (FM-source) playing in my car and then I start a phone-call either from my phone or from the Head Unit, the audio from the radio will be muted and audio(and the mic I guess) will be routed through the speakers of my car. When I hang up, the radio starts playing again. This is the expected behavior I guess. If I put Bluetooth as a source on the car's Head Unit, then I can stream music from the phone over the car's speakers. In this way, I can also use Google Now/Assistant. Everything works fine and probably as expected.
Now what I really want to achieve from my app is that while the radio is playing (FM as source on the Head Unit), is to be able to use Google Now and with voice-input ask something and mic/audio should be routed through the car. This will not work if the Head Unit has FM-radio as a source. So my idea was that by using an app, I will somehow trigger the Head Unit to switch the source from FM-radio to Bluetooth-mode so I can use the mic/speakers of the car and then launch Google Now for voice input. When finished, the Head Unit should reset the audio source to FM-radio. Of course, I have no way to access the Head Unit programatically through APIs and change audio-source but maybe this can be done through Bluetooth (I assume phone calls and the switch of source on the Head Unit is done directly by the BT-protocol)
So I am wondering if this is possible using Android's AudioManager object. If yes, then I will study it further, if not, that be it. Either way, I will learn something new.
I'm trying to film a video with a camcorder.
However, the camcorder isn't support bluetooth microphone.
Fortunately, I think I found a way to do it, but I can not find good app to do it.
My plan is, use phone as a bluetooth receiver, and connect the audio port of the phone to the camcorder via cable.
I need:
an app that make the bluetooth headset as a default microphone of the system.
an app that make the sound from the bluetooth mic able to flow to the audio port.
I know about an app called "megaphone" in Apple store that makes sound from the phone's mic flows through to the phone's audio port.
But I can not use the bluetooth headset for it.
Any suggestion please?
Sounds like a great App. Start by installing Android Studio (http://developer.android.com/tools/studio/index.html) and then its about research... Search around SO (or google) for any of the keywords that sound reasonable. Look at the related questions (on the right panel) for other questions that have been asked with similar key words (you'll find tons of info)
Start a project, and ask questions when you get stuck.
I have written an Android app that receives audio from WiFi and plays it. When the phone is still and not moving the audio quality is great. But when I move the phone specially when it is connected to a headphone I can hear clicking noise. I am wondering if this is something known that can be mitigated in the App? For example since Android knows if the headphone is connected or not, if the jack is not very stable and shaky it could create some interrupts and cause this clicking noise? By the way the phone that I am doing the testing on is HTC Inspire 4g.
For benefit of others:
It looks like after some investigation it is not the headphone jack, but the wifi link that changes. When I hold the phone in my hand and move it quickly it looks like the wifi link gets very weak for a short period of time and I loose the link for some time and that causes the clicking noise.
I just noticed, using the HTC Dream that using a bluetooth headset was really easy for phone calls, but nothing seemed to be available for videos / music sound output. V1.0 limitations are not at fault since when you play a music and start a call, you can hear the music in the headset for a second. So it's technically possible, just not available in the settings.
Does anybody knows how to redirect programatically the sound output to the blutooth headset ?
I'd like to code a little app that let you listen to your music while looking like a total idiot with a big device hanging to your hear :-)
N.B : this question is a copy of the one I asked in Google group.
Prior to Android 1.5, Bluetooth support was limited to the headset/handsfree profile. No "audio" other than the phone conversation could be redirected over Bluetooth.
Having installed Cupcake on my G1, I have now used Bluetooth stereo audio with my Motorola S9 headphones perfectly. The whole stack is even smart enough that they automatically pause the music/video, switch over to the headset profile when a call comes in and then back when the call finishes.