HomeStoreForumsWikiiPhone Native AppsiPhone Apps modmyifone Downloadsmodmyifone Links





Free 3G iPhone Contest!
Unlocked Cell Phones

Go Back   Forums at ModMyiFone.com - iPhone | iPod Touch, news, apps, themes. > 3rd Party Apps For iPhone | iPod Touch > iPhone / iPod Touch SDK | Development Discussion
Register FAQ Members List READ THIS Today's Posts Mark Forums Read

iPhone / iPod Touch SDK | Development Discussion SDK questions. A place for iPhone developers to post code snippets, discuss creating iPhone apps, and any other iPhone developing.


iPhone Optimized MMi | Browser Optimized MMi | Work Opportunities at MMi - updated 7/16/08

Get more out of ModMyiFone by joining our free community. By registering you get privileges to download files from our downloads section and you may also post your questions in our forums! It's fast, free, and easy!

3G iPhone Local Launch Parties | 1.1.4 Unlock|Jailbreak OS X / Win | Win Free 3G iPhones!
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-02-2008, 02:39 PM
Developer
 
Join Date: Feb 2008
Posts: 107
Thanks: 5
Thanked 92 Times in 22 Posts
How to access the top ear speaker

Has anyone seen a 3rd party native app access the top speaker (not the player speaker at the bottom of the phone).

Better yet - anyone know how to (code wise?).

THANKS!

-mc
__________________
IntelliScreen App - http://www.Intelliborn.com - Your "Slide to Unlock" screen on Steriods!
IntelliScreen FAQ's - Includes FAQ's/Known Bugs/Feature Request List (Please read before posting!)
Vonagent App - http://www.vonagent.com - manage your Vonage Forwarding and View Voicemail details.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #2 (permalink)  
Old 03-02-2008, 09:05 PM
JLA JLA is offline
Developer
 
Join Date: Oct 2007
Posts: 200
Thanks: 1
Thanked 21 Times in 20 Posts

To get sound out of the receiver, try this:

Code:
-(void) switchToReceiver
{
NSString* zError;
AVController* zAVController=[AVController avController];
[zAVController activate: nil];
[zAVController setAttribute:@"PhoneCall" forKey:@"AVController_AudioCategoryAttribute" error:&zError ];
}
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
The Following User Says Thank You to JLA For This Useful Post:
psuskeels (03-03-2008)
  #3 (permalink)  
Old 03-03-2008, 09:03 AM
Developer
 
Join Date: Feb 2008
Posts: 107
Thanks: 5
Thanked 92 Times in 22 Posts

JLA - Thanks a ton! Worked great.
__________________
IntelliScreen App - http://www.Intelliborn.com - Your "Slide to Unlock" screen on Steriods!
IntelliScreen FAQ's - Includes FAQ's/Known Bugs/Feature Request List (Please read before posting!)
Vonagent App - http://www.vonagent.com - manage your Vonage Forwarding and View Voicemail details.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #4 (permalink)  
Old 03-03-2008, 04:01 PM
Green Apple
 
Join Date: Feb 2008
Device + Firmware: unlocked iphone FW 1.1.4 BL3.9 with ZIphone 2.5 *** Thank You for your hard work *** :P
Posts: 33
Thanks: 3
Thanked 0 Times in 0 Posts

i don't get... where did you put the code in?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #5 (permalink)  
Old 03-03-2008, 04:56 PM
JLA JLA is offline
Developer
 
Join Date: Oct 2007
Posts: 200
Thanks: 1
Thanked 21 Times in 20 Posts

Anywhere you want...it can be a class method, so I guess you can change that - to a +.
Calling it will switch to the audio to the receiver until something switches it back.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
Reply

  Forums at ModMyiFone.com - iPhone | iPod Touch, news, apps, themes. > 3rd Party Apps For iPhone | iPod Touch > iPhone / iPod Touch SDK | Development Discussion


Thread Tools
Display Modes

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

ModMyMoto.com - ModMyGPhone.com - ModMyiFone.com - Managed Dedicated Servers by SingleHop - iPhone Wallpapers - iPhone | iPod touch forums, news, themes, apps, games, unlock, jailbreak community - ModMyiFone.com RSS Feeds - Contact Us - Link to us - Archive - Privacy Statement - - Top
Copyright © 2007-08 by ModMy, LLC. All rights reserved. You may not copy anything on this site unless you link to the original.
All times are GMT -6. The time now is 06:58 PM. Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5
ModMyiFone.com is an independent publication and has not been authorized, sponsored, or otherwise approved by Apple, Inc or Cisco Systems, Inc. The information contained on this site is for educational purposes only.
Forum skin by poetic_folly