Detect Quite hours On/Off on Windows Phone 8.1 - windows-phone

Is exists any way how to detect if "Quite hours" is turned on or off on Windows Phone 8.1 (WinRT)?
Thanks

The short answer is no, you can't.
The API was Added with Windows Phone 8.1 Update 1. However, you can only use it with special permission from Microsoft (which average developers have no chance of getting) because it's inteded for developers of smart Bluetooth devices such as smart watches only. In case you're curious the relevant API is below, but as I said there's no way to use it.
public class Windows.Phone.Notification.Management.AccessoryManager {
...
public bool DoNotDisturbEnabled { get; }
...
}

Related

iOS 10 Toggle On/Off programmatically 3G/4G data with Private API

So I got a client asking for a way to programmatically reset the data connection of his iPhone. The app won't go to the Appstore so any help is welcome.
There is two possibility but each one does involve Private API uses :
• Toggle 3G/4G On/Off
• Toggle AirPlane mode On/Off
The question is simple :
How to use the Private API to get the wanted result ?
With probability of 95% you won't be able to do that. Apple closed most of private APIs as of iOS 8.4. For education purposes, you could take a look at the iOS runtime headers for iOS 10.1 just to see what's no longer available.
Moreover, as of Xcode 7 you can't even link the private frameworks inside an app that easily - be it for AppStore or AdHoc.
So even if the client device is using a jailbreak, you won't be able to achieve it.
What you could do though - is write a jailbreak tweak and post it to Cydia, or somehow call an existing preinstalled tweak from inside your app on a jailbroken device - though I've never heard anyone do that.

API or Class to find out whether the HotSpot is turned on or not?

I'm working over the "HotSpot" is the there any Api or Class whether is "HotSpot is Turned ON or Not".
You could simply identify the Wifi status by using the DeviceNetworkInformation.IsWiFiEnabled Property . However you'll not be able to identify any HotSpot which is the Internet Sharing feature in WP.
Another point which i would like mention here is that, you could not programmatically turn on or off the Wifi status up to now, but you could simply allow the user to change it via ConnectionSettingsTask.
Turn Windows Phone Settings On/Off
You could refer these for more:
Windows Phone 8 network information
Detect network changes for Windows Phone 8

Objective-C send an alert when user performs action

I am writing an OS X application to prank a friend of mine at work. When he uses my app to place a fake order for coffee, and I need it to send a message to me letting me know that he placed an order. I looked at sending an email to myself stating he placed an order, but I didn't really want him to see it, and Apple doesn't like sending messages in the background. What would you suggest?
I am willing to share the app if anyone else likes to have fun at work :-)
Dev System: OS X 10.10 Xcode 6 Beta 3
Target System: OS X 10.9
Is he running the iOS 8 beta? If not then there's no server infrastructure provided and everything that involves posting (via email or to social media) requires explicit user consent.
The easiest thing then? Probably the Yo API. It's zero-character communications so as you'd imagine there's not a lot to it. Sign up, get your API key, then issue a single URL request when he hits the button. You'll get the 'Yo'.

"Guided Access" equivalent

I have to develop a windows store app which will be usable on public devices, that means users aren't supposed to be able to quit my application.
On iOS devices, an option called "Guided Access" allows to do this easily, buttons are disabled and you can specify an area where user can interact.
After some researches, I haven't found a way to do that, it seems that Microsoft has not implemented this option in Windows 8, so I'm looking for a way to do this with some code, directly in my app but I have no idea on how to do that precisely. Please, can you tell me if it's possible and, if it is, can you give me a point where I can start ?
Thanks.
I´m not sure whether or not this made it into the newly released preview of the Windows 8.1 Update, but check for "Assigned Access" it was rumored to be a new feature especially for Windows store apps
Edit: See the offical 8.1 product guide here, it only mentions it two times but maybe it is worth installing the preview.

Return Lync presence with VB.net

I am working on a solution to a problem at work where we can't tell if someone is on the phone or just sitting there. We use Microsoft Lync to place our calls and I was hoping to be able to add a bit of code to an existing .net application to show the presence of the person logged into the machine. That info will send that out via USB to an indicator light I previously built.
So basically I am trying to create a .net version of those 'ON AIR' lights you see at radio stations.
I have been searching for the last few days and haven't found a solution. I also downloaded the Microsoft Lync Controls SDK, but no luck with that either.
The following site provides a couple of ways of getting the user availability: http://rcosic.wordpress.com/2011/11/17/availability-presence-in-lync-client/
You may also be interested in the BusyLight if you still haven't implemented this solution. It's a USB light which shows your presence, as you describe.
There's a video demo of it in action here.