Determine through program whether blackberry device is unlocked - blackberry

Please let us know if there is a way to find out whether Blackberry Device is unlocked (Can be used on any network) or locked (Tied to particular Network) through RIM APIs.
Thanks,
Mahim.

I hope the deviceInfo class of the rim api must be having a method which could return us whether a device is in holster or not and also i think it returns for how much time the device is idle
Better check that class.It will be helpful

Related

How to get device charging type in iOS app?

I need to get the type of charging method used to charge the device in my application (e.g. if device is getting charged using USB or wireless charger)
I am aware that we can know whether the device is being charged, but how can we get the method of charging?
Thanks in advance.
Have a look at this library on GitHub,
https://github.com/eldade/EEIOKitListener.
It provides a lot of information related to charging.

Redirecting Data flow to either wifi or Cellular in ios

I want ot redirect my iPhone data to either wifi or Cellular. Based on some criteria. Is it possible to redirect whole of the iPhone data to a particular interface like to either wifi or cellular. ?
I heard that this can be done using VPN but no idea how it can be done.
Any help on this?
By default, iOS help you with redirection when you have weak/good WiFi and switch on in Setting - WLAN Assist
MultiPath is a technology switching automatically by OS
Just read this Apple Doc for more help.
You can't manipulate it easily with high level API.
After all, changing device data flow is kind of low level thing. Just like NetworkExtension is Apple provided. As far as I know, Apple does not mention it in public.

How does apple store app knows my in-store location?

I notice when I walk into local Apple Store (the real shop), the Apple Store app on my iPhone 5s will show a welcome from the exact store (e.g. Apple Store XX where XX is a store name). I assume this app recognizes my location somehow. This store (in China) is not equipped with iBeacon yet, and after turning off BlueTooth I can still see the greetings. I continued to shut down WiFi, and restarted this app, then location and greeting is gone. Note I didn't connect to the "Apple Store" WiFi hotspot for all tests, but it definitely indicates the WiFi is relevant with the location mechanism.
So my question is:
how can this app know I'm near to or within the physical store based on WiFi scanning?
Is it part of Core Location public API? (if yes, I should be able to do the same thing for any shop with a WiFi signal - please explain how to achieve this in details if you know).
Or instead, is Apple doing their own dirty job but rejecting others all over the world to do the same? By dirty job, I mean a mapping from SSID to the exact location while device is not connected to the WiFi.
Thanks, geeks.

Programmatically connect or detect to a certain WiFi in iOS?

In advance I am sorry for my English.
The task consists in defining, whether there is a person in a certain place (at certain office, for example), and to activate depending on it certain possibilities of the appendix.
At first I thought of definition of information on WiFi (or check of the same SSID, or automatic connection to the hidden network with set in the SSID appendix and the password), but, seemingly, not to make it without jailbreak (if somebody knows how - please, answer).
I think, GPS - not the best exit as it is possible to be out of the room, using it.
By the way, I already saw apps determining by WiFi of a point of access so it can be made somehow. I guess.
Actually, question. How it is better to define in the application, whether there is a device within, for example, premises of office?
Basically, if you know location coordinates you can safely use CoreLocation framework. Whether your target device supports region monitoring it will be perfect. It uses not only GPS, but WiFi and GSM as well
Look here: https://developer.apple.com/library/ios/documentation/CoreLocation/Reference/CLLocationManager_Class/CLLocationManager/CLLocationManager.html
If you really need to get network name you can play with CNCopyCurrentNetworkInfo function of CaptiveNetwork framework.
See:
https://developer.apple.com/library/ios/documentation/SystemConfiguration/Reference/CaptiveNetworkRef/Reference/reference.html

How to check if another iPhone using the same program is in your vicinity?

I've been googling this problem, but haven't gotten the wording right.
Basically I'm looking for an API, or some seeds of guidance in how I would go about writing a program where you get push notified if someone is in the same area as you based on GPS coordinates. In short: a realtime 4square not based on checking-in but based on GPS.
Part of me feels like this is something Apple may frown upon, but if the user is notified and making the decision to run the app, perhaps not.
Thanks in advance.
You're looking for the Bluetooth Bonjour type notifications found in GameKit. This has nothing to do with GPS and is instead based of short range radio (Bluetooth) which advertises itself using a zero conf protocol. The APIs basically give you the ability to broadcast your service (eg. "MyGame") over bluetooth and listen for others potentially broadcasting the same service.
If you're talking about geographic vicinity, you'll need to set up a central server where each device can register its location, and which will provide locations of nearby devices. A service like FourSquare does exactly this kind of thing.
Another way to look at 'vicinity' is network vicinity. You could have each device advertise itself via Bonjour and look for other devices doing the same.

Resources