Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.
Thread: Changing and Updating Ringtoneis a discussion within the
iPhone / iPod Touch SDK | Development Discussionforums, a part of the
3rd Party Apps For iPhone | iPod Touchsection;
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...
05-09-2009, 04:04 PM #1
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.
the App edits:
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:
notify_post("com.apple.springboard/Prefs"); notify_post("com.apple.springboard/Ringtone"); notify_post("com.apple.ringtone.changed");8GB iPhone 2G
3.1.2 - Unlocked and Jailbroken
AMD Athlon 5000 Dual-Core 2.2GHz with 4.00 GB RAM
Windows 7 Ultimate 64 bit
07-26-2009, 10:19 PM #2
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?