+ Reply
Results 1 to 2 of 2

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: Changing and Updating Ringtone

is a discussion within the

iPhone / iPod Touch SDK | Development Discussion

forums, a part of the

3rd Party Apps For iPhone | iPod Touch

section;
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
...
  1. #1
    iPhone? More like MyPhone BoneCrif's Avatar
    Join Date
    Apr 2008
    Location
    Utah
    Posts
    111
    Thanks
    10
    Thanked 9 Times in 8 Posts

    Default 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?
    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

  2. #2
    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?

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