Is it possible to change global sound volume from our app in iphone SDK?
If yes, how?
Thanks!
The only way you can do that is throught MPVolumeView. There is no such code to make it louder unless the user do it throught the standard component. I think the reason is way it is not only an input control but when you change the volume in the phisical button it is displayed back in the MPVolumeView too.
Related
In objective-c for iOS dev, is there any way to programatically toggle the vibrate on/off? And also to check its current state?
If there is, where might I find it in documentation? I've looked and cannot find it so maybe it's not possible?
Edit: I don't mean to make the phone vibrate. What I mean is that when the phone is on silent there is a toggle to have vibration on/off. Can this be controlled programatically?
No you can't.
This is a system defined property (that your user can access from Settings).
None of the iOS APIs allow such kind of control.
I am developing application for Windows Phone 8.1.
I have developed live tile for my app. I am trying to find a way to configure live tile change animation. By default I see kind of Flip animation. It looks a little annoying. I do want to change it.
So, how to configure live tile change animation?
You can't change it, which in my eyes is the best choice for a consistent user experience and performance of the start screen.
Is there a way to programmatically mute the sound on OSX without using private APIs and in a way that is accepted by the Mac App Store.
FOR MAC OS X: This tutorial might be of assistance.
FOR IOS: No.
Sound Mute is a system-wide setting. So for applications developed using the official SDK cannot change (and in most cases cannot even access) system-wide settings.
It is technically possible to change the system volume through the private AVSystemController class in Celestial.framework, but will prevent your app from getting Apple's approval.
On the Mac, see Srikar's answer. I believe he's got it covered.
On iOS, [MPMusicPlayerController iPodMusicPlayer].volume = 0.0 will mute the audio output. If there is an MPVolumeView present in your view hierarchy, it will do this without visual feedback; if there is not, it may present the volume change popup you see when you press the hardware volume buttons on the device.
I have an installation project in mind which involves a hacked iPad - I'd like to have a background process running recording all the touch events regardless of what app is running in the foreground, and send them out via OSC.
Note that this is using a jailbroken iPad with root access, and users will be alerted about not entering any sensitive data. But I'm not an iOS developer so I'm not sure if this is even possible. I'd appreciate any kind of input/suggestions.
[edit] Since someone questioned my motive behind this question, I'll try to explain a bit: to be specific, I'd like to build a mechanical system with Arduino that emulates the user's touch input on the iPad, but I do not want to limit them to using an app that does nothing else but recording touch events.
There are three options:
Use the IOHIDFamily subsystem to capture all the touch events. This will do most of the processing for you, the only thing you'll need to do is fetch the events using a HID client, get their types, and if they are touch events, get their position, radius and other things you need.
Use the MultitouchSupport framework. This way you will have to process the digitizer data frames manually which is tricky.
Use a MobileSubstrate hook to hook the already existing HID client inside SpringBoard.
I am having a mute button in my app,when an incoming call comes when I tap on to that button the incoming call's ringtone should become mute.
Can anyone suggest me how to do this programatically.
Thanks to all,
Monish.
Applications cannot alter core functionality of the device. As such, you cannot interfere with the phone capabilities. Therefore, what you are asking for is not possible.
I am, of course, assuming that you haven't jailbroken your phone.