The ModMyTM Family of Sites:
ModMyMotoModMyiModMyGphone




 
 
Register or Connect with Facebook

Discuss AppStore Apps | Browse / Search Cydia | MMi Cydia Stats




  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > 3rd Party Apps For iPhone | iPod Touch > iPhone / iPod Touch SDK | Development Discussion
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 05-09-2009, 04:04 PM
BoneCrif's Avatar
iPhone? More like MyPhone
 
Join Date: Apr 2008
Device + Firmware: iPhone 2G + FW 3.0
Operating System: Windows Vista
Location: Utah
Posts: 111
Thanks: 7
Thanked 8 Times in 7 Posts
Changing and Updating Ringtone

I'm making an SBSettings toggle that will put the iPhone into silent mode. I've already made it about 90% completed, but I'm missing one thing. That's changing and updating the Ringtone, and also making sure that SpringBoard knows that it's been changed.

For example,
the App edits:
/var/mobile/Library/Preferences/com.apple.springboard.plist
and changes the Ringtone value to a silent ringtone file.
You can verify that the ringtone has been changed by going into Settings - Sounds - Ringtone. You can see that the ringtone is now changed to the new value. However, when the iPhone is been called, the new ringtone does not play.


There's a way to update the Location Preference, and I'm trying to adapt that to change the Ringtone Preference.
LocationD preference update:
Code:
notify_post("com.apple.locationd/Prefs");
And language update is:
Code:
notify_post("com.apple.language.changed");
I'm thinking that the way to update the ringtone would be something like this:
Code:
notify_post("com.apple.springboard/Prefs");
notify_post("com.apple.springboard/Ringtone");
notify_post("com.apple.ringtone.changed");
Any experienced objective-C users have any ideas?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #2  
Old 07-26-2009, 10:19 PM
What's Jailbreak?
 
Join Date: Jul 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

sorry to dig up an old thread, but i am trying to figure this one out too. where did the /Prefs come from in the location toggle?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
Reply

  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > 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



Go to Top
ModMyI

All times are GMT -6. The time now is 02:23 PM. Powered by vBulletin® Version 3.8.4
If you need Dedicated Server Hosting, you should check out SingleHop. | Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 Copyright © 2007-09 by ModMy, LLC. All rights reserved.

iPhone News / iPhone Forums / Apple News / Apple Forums / RSS / Contact Us / / Privacy Statement / Top