Playing music in background during a call - Java for Android App Development

Hi, I am trying to play music in background while making a call. So I mean that while speaking I need ability to play music in background using buzzer(main speaker) ,so the another person on the line could hear the music from the speaker. I have been studying Android API , but didn't find anything, that allows me to do this. I have tried services, but this also doesn't work.
I have found similar questions but there is no any solutions. Also I don't need ability to hear person on the other end of line, so I don't need to use earpiece(speaker). I need to use only microphone and buzzer(ringer).
Is there any way to do this using default API . Or there is no such feature at all available on Android Platform. Maybe there is any way to do this using native interface and system calls or something else. or at worst to modify ROM or Android OS or Kernel.
I don't need really solution(it would be great of course) in code , I need just direction where to start. Maybe there is easy way to do this , so I don't want to reinvent the wheel.
I would be grateful for any answers and suggestions about this question.

Related

A few questions after 3 weeks use.

After almost 3 weeks of using X10 I came up with a list of question that I hope some of you may be able to help me find solutions.
1. Regarding making/receiving calls through car speakerss when there is an auxiliary cable plugged into the phone, I can hear the person who I call/who calls me, but they cannot hear me through the phone. Is this true with everyone's phone? Listening to music and then having someone call me while it is plugged in is very annoying as I have to unplug the cable and wait a few seconds for the mic to start working.
2. Is there a way to make a shortcut on desktop for MMS & Data so I don't have to go to menu, settings, wireless controls, mobile networks to switch off 3G (to save on battery..) or any other solution ?
3. Does anyone know if there's a website where you can watch latest nhl highlights, since the phone doesn't support flash.
4. I would like to find an app similar to yellow pages, which will find whatever I need based on my current location using gps and not on the location that I input in the phone for the reasons such as most of the time I won't know my exact adress.
5. Does anyone know if Wisepilot is worth upgrading after a 30 day trial or is maps.brut should be enough for GPS.
6. Does anyone know how much data app like internet radio uses approx. ?
7. There's a function in mediascape for music called playlist, but I don't seem to be able to create my own playlist. The only one that is listed is recently played. Anyone know how to create your own ?
Thanks for your help.
1- yes it is a commone problem people talked about around here
5- i guess google is doing good with updating the maps so its the same stick to maps(till garmin or something like that gets out )
6- this depends on the staion ur listing from what quality of music is it brodcasting, time of use and so on
7- u can add playlist by using media go, u creat a playlist on windows midea player or any other program or by media go, then u refresh media go to find ur playllist and right click there is transfer, then u find it in ur mediascape playlist that is the only way i guess. its fine with me
PS: u can search the other questions im sure u will find the answers coz lots of people have asked the same questions....
1. You need an inline microphone such as http://store.shure.com/store/shure/en_US/DisplayProductDetailsPage/productID.105498400 (I am sure you can find a much cheaper option if you shop around).
2. Yes just long press on the homescreen then choose shortcut and the path that you need.
3. pass
4. If you allow Google to use your location it should do some of what you require otherwise try something like Superpagesmobile http://www.superpages.com/mobile/android
5. As Google maps now has navigation why pay for an application ?
6. It will depend on the bit rate of the station, but roughly 50Mb per hour for a 128k station
7. You can add playlists by using the built in music player app use the App AnyCut to add a shortcut to your homescreen (choose Activity then Music).
My phone came with Wisepilot installed, but I prefer the new Google maps navigation.
Google Nav is only available in the U.S. and the U.K. right now so you might need a third party GPS solution.
There are plenty of widgets available for turning off/on 3G.
instigator008 said:
Google Nav is only available in the U.S. and the U.K. right now so you might need a third party GPS solution.
There are plenty of widgets available for turning off/on 3G.
Click to expand...
Click to collapse
Search XDA for maps.brut

[Q] Is there a way to record a voice notice to Google Keep (no transscripting)

I've got my watch yesterday, sorry for my noob question:
Transscripting is not reliable enough for me, I would like to record voice notices to Google Keep and reorganize them on my desktop later
I've also tried Evernote (Basic subscription), I could not find a way to do it neither...
Am I missing something?
P.S: I've tried the Player FM app for podcasts, but it not responsive/hanging quite often - is it only me?

Updated phone dialer app

Hey guys first time poster here.
Ive been trying to search around but cant find any real solutions.
I find the stock phone dialer app terrible as you cant have favourites and just the overall appearance of it aswell is a little plain.
I downloaded the app dialer and I like the look and functionality of it but when i press to call someone it goes to the stock dialer but it takes about 15 seconds to get there.
Someone please help!
The standard dialers you find on play store do not implement HFP-CLIENT.
To my knowledge, there are three hfp-client dialers available;
1) The binary only one that the thing ships with,
2) The new one added to AOSP8 here: https://android.googlesource.com/platform/packages/apps/Car/Dialer/
3) The qualcomm test application available on codeaurora.
There are problems with all of them for this application.
Specifically, as you note, option (1) is absolutely terrible.
A common problem with option (2) and (3) is that they don't interface with the chinese audio control hacks, which means that when you switch to a call, the audio won't come through.
An additional problem with option (2) is that it doesn't compile with less than Android 7.0 -- even though it actually specifies a minimum of 6.0, it depends on something with a minimum of 7.0.
An additional problem with option (3) is that it is a test application through and through, it doesn't implement the necessary background service to pop up a notification you can click on to answer a call. The application has to actually be *open* to do anything.
But aside from those problems with (2) and (3), the *good* thing about them, is that they are open source, which means that anybody who wants to adjust them so that they do work, can do so.
If I was going to pick somewhere to start with this, it would be with option (2). It is a dialer meant for end users, and would take a lot less work to adjust it to (a) compile, and (b) implement the needed audio hacks. Although technically, I do have option (3) working, as I mentioned, it has to actually be open in the foreground to do anything, and it doesn't implement the audio hacks.
Hi,
Apologies for the noob question but what do you do with the code in option 2 to install it on the headunit?
Thanks!
luciusfox said:
The standard dialers you find on play store do not implement HFP-CLIENT.
To my knowledge, there are three hfp-client dialers available;
1) The binary only one that the thing ships with,
2) The new one added to AOSP8 here: https://android.googlesource.com/platform/packages/apps/Car/Dialer/
3) The qualcomm test application available on codeaurora.
There are problems with all of them for this application.
Specifically, as you note, option (1) is absolutely terrible.
A common problem with option (2) and (3) is that they don't interface with the chinese audio control hacks, which means that when you switch to a call, the audio won't come through.
An additional problem with option (2) is that it doesn't compile with less than Android 7.0 -- even though it actually specifies a minimum of 6.0, it depends on something with a minimum of 7.0.
An additional problem with option (3) is that it is a test application through and through, it doesn't implement the necessary background service to pop up a notification you can click on to answer a call. The application has to actually be *open* to do anything.
But aside from those problems with (2) and (3), the *good* thing about them, is that they are open source, which means that anybody who wants to adjust them so that they do work, can do so.
If I was going to pick somewhere to start with this, it would be with option (2). It is a dialer meant for end users, and would take a lot less work to adjust it to (a) compile, and (b) implement the needed audio hacks. Although technically, I do have option (3) working, as I mentioned, it has to actually be open in the foreground to do anything, and it doesn't implement the audio hacks.
Click to expand...
Click to collapse
I just bought a Seicane unit. The model is listed as sp9853i in the settings screen. I haven't been able to find a lot of information anywhere about this unit. I have been trying to get a different HFP-enabled phone dialer, but no luck so far.
I did try installing FCC Launcher, which lists dialing through BT as a feature. However, it looks like the Seicane sp9853i provides the actual bluetooth functionality in the actual launcher. When I start FCC launcher, BT disconnects. Also, the BT properties are not available under Android settings, which is not terribly surprising, since it's a head unit, not a phone.

[Q] Phone mic on multiple apps at the same time ?

Is there a way to use the mic in multiple apps at the same time , for example i have Smart Lights that use 2 different apps and i want to use ¨Music Flow¨to light-up the room on music but the mic is working on only one app.
Untill i change all the lights to the same manufacturer i want to light-up the whole room not just a side
Same if i want to recod something and use google assistant at the same time .
I´ve searched on google but i found only threads from 2012,2014...and they are saying something about kernel limitation and security reasons . Can i bypass those security limitations ?

Develop - use speech to text engine on device

I'm building a WearOS app and would want to utilize on device speech to text convertor. Is there an example or api documentation I can refer. My search ends up with Gboard, which is not what I am looking for.
The app is something like virtual assistant and listens to user's voice.
You can try mp3 to text converter. It is cheap, fast, and easy to use. Also, you can choose between Automatic and Manual Transcription Services. It depends on your needs, budget, and time.
I registered finally! been reading this site for years. (for like ten phones worth).
I just wanted to ask, if the app is/went well? You did not get good response to your question, and well, that bummed me out. (nice try McLellan, but too little too late, truly).
I would assume you would want to utilize Google's speech to text engine, to get the text, and then script out what to do with the input yourself. I AM look for an opensource solution to G-S-to-T right now, myself....
-JJ
Yeah OK, 2019 was a triumphant year for people that use their voice to a keyboard: https://venturebeat.com/2019/08/16/google-open-sources-live-transcribes-speech-engine/
now I just gotta figure out why AICP is not, using it.....
So, I fixed my problem. Gboard, for whatever reason, had rendered itself useless. So using Aurora, I uninstalled, re-installed , configured, and now i can talk out my SMS text messages in public to all-who-can-hear-me's annoyance. And, I can still talk to the voices in my head and look sane too (and my phone don't even need to be on! just in my hand.) I have never tried WearOS, but, I might need to look that up, cuz I keep hearing about it. Good luck to you and such.
-JJ

Categories

Resources