Go Back   Android Forums > Android Development > Application Development > Application Requests
Application Requests Request Apps or provide ideas for the devs here.

test: Reply
 
LinkBack Thread Tools
Old April 6th, 2011, 05:05 PM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Apr 2011
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default Disable headphones, leave microphone enabled

I have a broken HTC Hero. The built in microphone does not work.

I can get around this problem using the headset jack and plugging in a microphone.

However this routes the sound to the headphones. I have tried modifying ToggleHeadset2...
Code:
//setDeviceConnectionState(DEVICE_IN_WIRED_HEADSET, DEVICE_STATE_UNAVAILABLE, "");
setDeviceConnectionState(DEVICE_OUT_WIRED_HEADSET, DEVICE_STATE_UNAVAILABLE, "");
setDeviceConnectionState(DEVICE_OUT_EARPIECE, DEVICE_STATE_AVAILABLE, "");
I thought commenting that line would leave the microphone enabled. This however seems not to be the case.

If anyone could send some code my way that would get this done quick and dirty like I'd be eternally grateful.

Thanks!

Advertisements
Zinefer is offline  
Reply With Quote
sponsored links
Reply


Go Back   Android Forums > Android Development > Application Development > Application Requests
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 06:54 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.