Switch to speakerphone automatically / programmatically - JASJAR, XDA Exec, MDA Pro General

Does anyone know how to switch the Universal to speaker phone during a call without manually selecting it for each call via the normal phone app? I have tried doing it in code with phoneSetHookSwitch(..., PHONEHOOKSWITCHDEV_SPEAKER, PHONEHOOKSWITCHMODE_SPEAKER) which works OK while it is ringing, but it keeps turning the speaker back off again once the call is connected. My app is running all the time in semi-kiosk mode, so accessing the inbuilt phone app can be a problem.
Basically I want the machine to always use speakerphone. I'm sure I had this working before, with the call above. However I've been on other jobs for a few weeks, and the machine's been reset a few times, and now I can't get it to stay on speaker.
Stuart

Related

Loosing sounds?

Hi, can anyone advise as to why I lose the all sounds on an Orange Branded M3100 phone, other that Microsoft voice command 1.6 no other software has been installed! The details of the ROM are as follows
Operator Version: 14.123.1.614
ROM Version: 1.23.61.4
ROM Date: 07/13/06
Radio Version: 1.06.00.00
Protocol Version: 32.37.7010.01H
Here what happens no sound on the phone, reset the phone sound is now back, after a while, don’t know how long but the sound disappears, you get no ringing sound, menu click sounds nothing, reset the phone again and all is back, so it would suggest that it’s not a hardware failure but a software failure, how can I stop the orange branding installing itself after a cold reset in case something there is causing the problem, has anyone else came across this problem?
This is a brand new phone only received it Friday, does it need to go back?
Kind Regards
Dogo
I've recently noticed on my 8525 too, after a while it seems to just go on silent but the setting isn't changed it still set to on and no sound comes out of the phone no matter what program is used.
Phew, I thought it was just me..
I have noticed it may be something to do with the Bluetooth ear piece, although it always seems to happen when I have left the phone a while. and never when I try to check for the problem
To isolate whether this is hard or software you could try doing a full backup. Do a hard reset and let the device run for as long as it would normally take to show the problem, without any additional software. But do run wifi and power intensive applications to warm up the device - as this can cause internal connector problems.
If the problem is gone, this will tend towards a software problem although not an absolute guarantee. There are some issues that are related to both soft and hardware!! For example the screen fading to white issue can be caused by running (power intense) software that makes the device warm and that in turn causes pressure to be put on the screen.
A final thought, the speaker connection block is next to the stylus tip. There have been cases of the inserting and removing of the stylus causing the connector to become loose. This can cause intermittent sound or no sound at all. The warranty voiding fix is easy. Remove back and check connection is tight. No further dismantling needed. Ensure camera toggle arm is engaged before putting screws back in. (Rear Speaker)
The front speaker can also have issues. has spring contacts that can become slack - poor contact with m/board. There is a thread on checking this.
Mike
No Sound, not a Stylus issue
8525, ms voice dial 1.6,
HTweakC 2.0,
SBP Mobile Shell 1.0.0 build 2632.
ROM 1.34.502.1
radio 1.16.00.00
This has been happening about a week, nothing new installed. On Saturday I missed 12 calls because it was "auto-muted" nothing was on mute, just no ring sounds or anything else. I thought it might be some setting, I suspected that it didn't come back after I had set on vibrate for a meeting, so I went through everything, looks good. had to soft reset for audio to come back. Happened again Yesterday morning after being on charger, had to soft reset, happened again this morning after being on charger, had to soft reset. I'm suspicious of the charge ciruits, the phone was placed on a night-stand and I checked to make sure sound was working AFTER i plugged the charger in (i am an on-call engineer for hospitals) when I got up this AM the first thing I checked was the sound, no sound. Had to do a soft reset and sound is fine.
THIS IS VERY, VERY, VERY troubling.
i cant say that my sound has been "loose"
thefunkygibbon said:
i cant say that my sound has been "loose"
Click to expand...
Click to collapse
yep, I agree. My keyboard slider might be loose, but never had problems with the sound.
No sound - possible solutions
I too have had the no sound problem, but I also have a solution (well it seems to work for me and a few other people I know)
I have found that if I have more than about 800 sms messages on the phone (combined count across inbox, sent items, deleted etc...) my phone will decide sometimes to stop making any sounds.
Other symptoms include thew screen not going back to the background when problems are "closed" (well press the X button), sometimes not changing from portrait to landscape.
Hitting the reset key temporarily fixes the problem, but it strike again at any time...
I have seen this on both the official UK orange firmwares
As a side note, more than about 1000 sms messages and 5 unread sms messages and the phone will lock up about 10 seconds after the phone boots up. You have to be quick when the phone boots to go in to the sms inbox and delete 1 message before the phone locks up. This can be a bit tricky but i have done it a few times
from readingmany related threads, it looks like there are several causes for this issue. for me, it was definitely microsoft voice command 1.5 and 1.6. I turned off any notifications from voice command and my problem went away. no calendar voice announcements, no callerid, no bluetooth routing announcements, etc. voice command simply doesn't give up control of the audio sometimes, and it appears to occur most when it wakes up and announces something.
All I use voice command for now is voicedial. try that a while and see if you are fixed.
1.5 was worse, but 1.6 does it too.
good luck!
wes
saga continues
It did it again, twice in one day. Picked up the phone, (it had been resting on the table for several hours). No sound, I tested by placing a call and turning speaker on.. this works! So the speaker (rear) is fine as well as the front (ear).
After I heard the speaker on speaker phone I tried hearing the dial tones or other sounds, none. No incoming ring.
Device and phone volume on FULL
Turn volume off, vibrate, on, off on, and from phone screen turn to vibrate then back to sound
Vibrate still works for inbound calls
Turn voice command off and on
Go to phone (in settings and play the ring I've chosen) and suddenly it’s working again?
I'll try the turning all but phone options in voice command to no-notify. But to tell you straight, this is silly, one more day of this and it's probably (unfortuately) crackberry city for me. I simply can't have a phone that doesn't ring. I guess some ittertation of an O2 would do.. but I'm not too keen on plopping down another 5bills....
any ideas?
labrati said:
It did it again, twice in one day. Picked up the phone, (it had been resting on the table for several hours). No sound, I tested by placing a call and turning speaker on.. this works! So the speaker (rear) is fine as well as the front (ear).
After I heard the speaker on speaker phone I tried hearing the dial tones or other sounds, none. No incoming ring.
Device and phone volume on FULL
Turn volume off, vibrate, on, off on, and from phone screen turn to vibrate then back to sound
Vibrate still works for inbound calls
Turn voice command off and on
Go to phone (in settings and play the ring I've chosen) and suddenly it’s working again?
I'll try the turning all but phone options in voice command to no-notify. But to tell you straight, this is silly, one more day of this and it's probably (unfortuately) crackberry city for me. I simply can't have a phone that doesn't ring. I guess some ittertation of an O2 would do.. but I'm not too keen on plopping down another 5bills....
any ideas?
Click to expand...
Click to collapse
I have just read your last two posts. I am wondering whether you are saying you have a sound/ringer problem OR whether you mean the phone sometimes crashes and therefore does not ring (i.e. you then need a soft reset) and sometimes you discover you've missed a call but never heard it ring.
If the above is true then I think you need to look for the solutions for avoiding hangs/freezing. I can guide you to these or a search will show them. It certainly does not appear that you have any physical problem with the speaker/earpieces.
Mike
dogo said:
Phew , I thought it was just me..
I have noticed it may be something to do with the Bluetooth ear piece, although it always seems to happen when I have left the phone a while. and never when I try to check for the problem
Click to expand...
Click to collapse
Hi, I never had a sound issue untill I started usin my HT820's, but have noticed a few times lately that my device sounds arent working, (I dont mean always through to the bluetooth headset) and I just power off/on the device, I dont get that many calls, so I havent missed any, and wasnt sure if it was rom or bluetooth related for sure, but I do usually leave my bluetooth on, just not always the headsets, it also doesnt happen a whole lot.
Loose connector
I'm not sure if this will help anyone, but i was losing sound on my 8525. I had dropped my phone twice and the rear speaker connection had gotten loose so i opened it up following the directions at http://www.howardforums.com/showthread.php?t=1152710&page=1&pp=15
and now i have sound again.
Continued Issues
Mike, thanks, the issue isn't with the phone locking up at all, it's been very stable, I think I've soft-reset probably 3 times in two months.
The phone literally will stop emitting any sounds. I can still hear if I place a call and if I place that call on speaker phone it's fine. However if you call the phone, try to play an audio file, etc there is no sound that emits from the device.
It did it AGAIN today, I tested, was able to place a call and put it on speaker and called it with my other phone, the pop up screen announcing the inbound call came up and everything else on the phone worked as it should (except no ring). I then went to settings phone and hit ok (top right of screen). BAM.. sound was working on the device again, inbound calls ring, able to play audio etc.
I did note one other possible anomaly, I have my PTT mapped to initiate voice command, when trying to use this I was unable to initiate voice command. After going to phone and pressing OK, voice command started working again. W/O voice command I'm sunk, I have 500+ contacts.
I placed a call to AT&T and I'm back on the "chronic retention" list.. ughhh.. I went through 8 treo's last time. I don't want another basket of refurbs to deal with, I like WM so much better than previous interfaces.. any ideas are very, very, very welcome.
-mike
More information
This morning, the sound was gone again, but I went into settings and started playing to see what else might induce it to work again, I tried voice command again, disabled and re-enabled, that didn't work.
I then went into sounds and that didn't work, went into Today, and Buttons neither of those worked, but when I went into input (didn't do anything, just opened it and closed it) sound started working again.
Hopefully, none of you guys have a newer ROM with the loud startup animation and attempted to turn down that volume via the registry as outlined in the wiki. Unfortunately, doing that also lowers the speaker volume so I just disabled the animation instead. Phone and bluetooth sounds fine but mp3 and everything else were also lowered to a whatever level depending on the startupanimation volume you set.
update
It did it to me again yesterday, this time only going to settings phone and pressing OK would make sound come back.
Today, the phone refused to dial or emit any sound. Would not come back after soft reset (would not dial, no sound) had to do a hard-reset (removed battery). After first soft reset a windows came up to advise that mobile voice command couldn't start...
For a darn near $500.00 phone this is pretty sad. Love the phone but gee whiz...
Daily occurance
Well, it does it every single day at least once a day, and I've noticed the phone has slowed a lot, sometimes during SMS or email the cursor goes away or I have to wait 20-30 seconds for words to complete typing after I've finished. I guess I'll get my refurb next week. Perhaps go back to palm.. dunno...
possible fix?
I turned OFF the SMS message sounds and it seems to be working w/o losing sounds again! I'll let it run for a couple of days and see if this is the deal, but I now have no audio announcement for ActiveSync, POP email, SMS, or MMS. I do have audio/vib for missed calls. Anyway, it's been up and running fine all day. Good Grief.
no fix in sight
On hold with ATT right now for another phone. It did it again today at about 10AM. Strange, it may be time sequential, but it didn't do it at all yesterday.. it was great to have the phone ring.

Audio problems with phone calls

My focus is having audio issues when I make or receive phone calls. I can't hear the other person and they can't hear me. When I speak into the phone, the mic loops my voice back thru the phone headset. When I shutdown the phone, the first call made or recieved works perfectly but after that, it stops working. I have tried many codes to fix the audio and I have tried a soft and hard reset. I have tried everything I can. Has anyone else had this issue and knows how to fix it? Is this a case where the phone is just dead? Is there a way to reinstall the entire phone system? Everything else on the phones works perfectly. I love the phone and don't want to lose it.
I did have a similar problem if I am reading your post correctly. What happens is for some reason the phone can reroute the mic and through the speaker similar to speaker phone but doesn't function properly. The fix that I found is recalibrating the mic and speakerphone through the diagnosis app. I don't remember exactly what i did but I did fix it through the diagnosis app.
Go into your diagnosis app and test your speakers with a melody test make sure that they are all working.
*#0289# - Melody Test\Test External and Internal Speaker
I have gone in the diagnose program and tried many things and nothing seems to work. It seems that restarting the phone works but the second the first phone call is over, something happens and no other phone call can be heard and they can't hear me. I don't want to have to restart the phone everyy time I want to make a phone call. I am hoping someone can remember how they fixed this problem.

N9005 no voice when receiving sip calls on wifi

As the title says, when somebody calls me on one of my sip numbers and I'm on wifi I need to put the phone on speaker a number of times before I can start hearing anything from the call. After that it works but it might lose audio again at some later point and cycling the speaker setting brings it back.
I haven't noticed this before 4.4.2 and I can't reproduce it while on 3G. Any ideas?
Actually phone also directly drops the call or even reboots from time to time while doing this. Cool software, bro.
As a late update - I followed Samsung support's advice and reset the phone to factory defaults (from recovery) - then only installed a minimal set of programs and modified a minimal set of options. Receiving sip calls is still buggy or causing the phone to reboot.

[Q] Bluetooth carkit problem om cm11

I have the folowing problem when I pair my note3 with my bluetooth radio.
When I make a call it works. I can talk over bluetooth and everything is ok. I can hear the other party and the can here me (over bluetooth)
But when i end the call or the other party ends the call and i try again a next (second) call the problem occurs;
I cannot hear the other party nor they can hear me. Also if I choose for speaker or earpeace i hear nothing.
But when i shut off bluetooth (during the call) i can hear and the other party can hear me too again (but not over bluetooth because it is off)
Next, the third call I get the same, the fourth call same etc..
i have to reboot the phone and then it works again ONLY ONE time and than same problem.
I tried al lot of nigtly's, but same problem
Ik had the exactly the same problem on note 2. On TW rom it works fine.
Update..
Normally my bluetooth is off. When I get in the car I turn bluetooth on. I can make a call and that works great. Audio is good, no problem. But if the call is ended (It doesn't matter if I or the other party ends the call) and I try a second (and a third end so on) call I hear nothing and the other party doesn't hear me also.
I found out that when I turn bluetooth off and then on again before I make the second call, it works well again.
I even found out when I hear nothing during call and I turn bluetooth off and on it works all again.
Conclusion is. If I turn bluetooth off and on after each call I can use it.
I found a app in the playstore "bluetooth on call". This app automatically turns bluetooth off after a call en turns it on when you make a new call.
So for me it works this way

Non native phone app

All of a sudden last week, I am getting no sound on my GS4 when making calls--no outbound or inbound sound and neither side can hear. The call is going through. Voice recorder and playback indicate that it is not a mic or speaker problem. I have hard reset the phone to no avail. Every now and then, it will allow me to make one call but then it goes out again.
My question here, other than if anyone knows how to fix this, is if there is another phone application instead of com.android.phone that I can install and use instead of the native phone app? Phone is rooted.

Categories

Resources