This question already has an answer here:
Closed 11 years ago.
Possible Duplicate:
Play alert sound (same as default message ringtone)
Hello all,
Quick question -
Is it possible to use one of the default sounds included on the iPhone - Marimba etc. in an iPhone application?
Thanks,
Teja
The actual directories will only be accessible after JailBreak.
Ringtones (including Marimba):
/Library/Ringtones/
System sounds:
/System/Library/Audio/UISounds/
Or use 'AudioServicesPlaySystemSound()' like mentioned by Black Frog.
Note: This method is undocumented and will cause AppStore rejection.
Download link for system sounds (comment by clusterfu_k):
Can I get default audio files of Iphone (marimba, alarm, ascending,...)?
Note: Possible copyright infringement.
Related
This question already has answers here:
VOIP using XMPP Framework in iPhone [closed]
(3 answers)
Closed 9 years ago.
I want to make voice/video calls between iPhones App using WiFi/Internet. How should I do that? I don't want to make calls on service provider number. It will make calls between apps on different iPhones like skype.
I didn't fount any way to search. I am getting confuse how to start working on it.
U need to use VOIP service, there are lots of VOIP API but maximum are paid.
check apple doc:
http://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/AdvancedAppTricks/AdvancedAppTricks.html
Check This also
Twillo
This question already has an answer here:
Closed 10 years ago.
Possible Duplicate:
Mute/Silence an iOS device programmatically?
I need to turn off the device volume programmatically. Does anyone know a way?
So far I have discovered, that maybe i can use AudioSessionSetProperty() function, and use the property "kAudioSessionProperty_CurrentHardwareOutputVolume",
but this property is only read only. SO i am not sure if this will work:
float value = 0.0f;
AudioSessionSetProperty(kAudioSessionProperty_CurrentHardwareOutputVolume, sizeof(float), &value);
There are already apps in the App-Store that does this, e.g. AutoSilent:
http://itunes.apple.com/nl/app/autosilent/id474777148?mt=8
You can't do this with iOS. The only way to mute an iOS device is by using the hardware switch. You can detect it and mute your app accordingly, but can't mute the entire device from your app.
See this question: How to disable iOS System Sounds
And this question: Mute/Silence an iOS device programmatically?
They say there that it is possible though you have to use a private framework called the Celestial framework. You would use AVSystemController to silence the phone like so:
[[AVSystemController sharedAVSystemController] setVolumeTo:0 forCategory:#"Ringtone"];
The use of private frameworks in your app will cause it to be rejected by apple, so I don't recommend using it. Some believe that using private frameworks in your app could potentially be allowed by Apple initially (if they miss it), but it will soon be removed from the App Store when they realize that you are utilizing a private framework.
Hope this helps!
This question already has an answer here:
Closed 12 years ago.
i'm writing a tweak for iPhone that at certainly point needs to set the ringtone, but i'm not able to find how to do that.
Can someone tell me how to do that, put me in the right direction where to look or just tell me a website where to search or maybe in some wiki?
All i've found are useless answers.
More Info:
I need to know how to set ringtone for a tweak so the solution can be only for jaibroken devices.
Thanks!
You cannot set the user's ringtone using the iOS SDK. If you need this ability, consider filing an enhancement request at https://feedbackassistant.apple.com/. However, as this feature would annoy the unholy poop out of almost every user on the platform, don't hold your breath.
This question already has an answer here:
Is possible to simulate touch event using an external keyboard on ios jailbroken?
(1 answer)
Closed 2 years ago.
Im writing an app running in background on a jailbreak iphone. I need to send touch event to iPhone OS to simulate finger touches. Is this possible?
See Matt Gallagher's article "Synthesizing a touch event on the iPhone". You may also check out the Three20 framework, which I believe used synthesized touch events to test UI elements (leading to a rash of recent application rejections due to the use of private APIs).
Yes it is possible, using GSEvents. Try the KennyTM's private framework and GSEvent.h. It is under the GraphicServices framework.
https://github.com/kennytm/iphone-private-frameworks
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How to share custom data between iPhone applications?
Aside from using URL scheme, what other means are there for two iPhone apps to pass data between each other (ideally, without launching another app -- which is one of the downsides using URL scheme)
Unfortunately apps are sandboxed, and can't communicate with each other. You would have to implement something server-side to act as a central location for this data.