I have to set some blackberry device settings by coding.
Like.
1. Activate call waiting.
2. Enable wifi.
3. Enable GPS.
Can somebody help me. hope my question is clear
// call
Radio.activateWAFs(RadioInfo.WAF_WLAN);
Related
is there possible to programatically disable wifi auto join option in iPhone?
any help will be appreciated. thanks in advance
Short Answer: No.
Longer: This would violate the general idea of a sandbox if a process within the sandbox changes the system outside.
Think the other way around: You can check the SCNetworkReachability flags about the current connection and respond within your app.
I need to manage (turn on/off) a ikev2 vpn that was already configured(with certificate) manually on iOS. I need to do that in Swift. Any ideas ?
Thanks
There is a method which you can use to start your vpn.
NEVPNManager.sharedManager().startVPNTunnel()
I am writing XCUITests for my app in Swift, and I was wondering if it's possible to simulate the locking and unlocking of a device. I've looked at XCUIApplication methods but there don't seem to be any that allow me to lock the device.
This is not possible at the moment.
According to this answer, there's a private method on XCUIDevice that you can call to lock the screen as follows:
XCUIDevice.shared.perform(NSSelectorFromString("pressLockButton"))
I'm not sure but may be it is possible to do via some magic sentence like:
let siri = XCUIDevice().XCUISiriService // available since SDK 10.3
siri.activate(voiceRecognitionText: "siri, please lock my device")
I am trying to create an IOS app in which you assess the settings of the phone and in my case I need to access the mute setting in settings. Can someone please help me figure this out? Mainly i just want to know if you can and how to access the setting of an IOS deviceI do not have any source code yet but I will try to get some up once I get an answer or some help. Thank you
Pretty sure that is not allowed due to sandboxing restrictions.
You cannot accessing the Settings App from your own App, you can however adjust the system volume from an App if that is all you want to do.
Check out MPVolumeView.
https://developer.apple.com/LIBRARY/ios/documentation/MediaPlayer/Reference/MPVolumeView_Class/index.html#//apple_ref/occ/cl/MPVolumeView
What you are specifically writing about is not possible but you will probably find something that answers your use case in this SO question:
How to programmatically sense the iPhone mute switch?
No way to do this easily. If you want to do what you want in a one line way, take a look at this class : http://hoishing.wordpress.com/2014/05/08/mute-checking-in-ios7/
I'm looking to write a custom lock app to replace the default PIN lock on iOS.
As there are no apps like this available on the App Store currently, its clear that either Apple rejects these types of apps or its just not possible with the currently available APIs.
The app is just for personal use, but I'd just like to know if it's possible before starting. Anyone know which is the case?
Thanks
You can't replace the standard lock screen or PIN entry keyboard EXCEPT on jailbroken devices. First, there's no way to do it with the official SDK. Secondly even if there was Apple would not allow you to modify any of the system applications. If you're serious about doing it though for "personal use" and are OK with voiding your warranty (and/or possibly bricking your device) you could look into jailbreaking and the tools available. A hint in the right direction would be to learn as much as you can about SpringBoard and mobile substrate. Hope that helps.
It's not possible with the current APIs. As soon as someone pushes the home button your app will be sent to the background or terminated depending on how it is configured.