How to Block Blackberry Application programmatically? - blackberry

How to Block BlackBerry native application or Third party application.
e.g. - Enable and Disable camera.
- Enable and Disable Wifi connection.
- Block Facebook,twitter app.
Same as Mr.safe application on BlackBerry app world.
[http://appworld.blackberry.com/webstore/content/63110/?lang=en][1]
How it Possible to programatically ?

They just listen for app foregrounding and invoke their app foreground at this moment.
Here is answer how to listen app foreground event.

Related

iOS: How to listen hotspot turn on, turn off notification events

I am working on an application where I need to observe the hotspot events e.g. there must be a callback when the mobile hotspot turn on also when turn off.
I have tried with NWNetworkPathMonitor. but that is not resolving my problem. Please suggest me if there is any framework or third party library for that.

Is it possible to keep a WebRTC video call alive when the screen is locked on iOS?

I am developing WebRTC video calling app on iOS and ideally I would like the call to be kept alive when the screen is locked or the user puts the app in the background. The app uses the Socket.io library.
Is it possible/allowed for me to keep both the web socket and peer connection alive when the screen is locked?
I know apple states that "only specific app types are allowed to run in the background", and specifically mentions apps that support VoIP as one of these. Based off this, I was wondering if WebRTC qualifies, and if so, how it would be done.

How to find UIKeyboard Notifiactions outside of our app(app running in background)...........?

I want to know if user using keyboard outside,when my app running in background.?
I have to know whether user sending a text message using default Messaging app in iPhone.
I tried in this way:
By using Keyboard we can send Text Messages(80%),when ever user presses any key in keyboard outside of our app how we can know?.
I searched a lot,i found with in the app by using UIKeyboardWillShowNotification, but when app running in background?
Please Share Answer if any....!
Thanks In Advance.
I think it is not possible because when your app is running in background mode it does not execute any code from you application.
Only some limited tasks/background modes are supported.
Please check following link for more information: https://developer.apple.com/library/ios/documentation/iphone/conceptual/iphoneosprogrammingguide/ManagingYourApplicationsFlow/ManagingYourApplicationsFlow.html#//apple_ref/doc/uid/TP40007072-CH4-SW3.
App can only listen the Keyboard notification only when the app is in running state and notification is with in the app only in ios.
However there are the notifications in OS X, an application can listen the keyboard notification outside the app.
This isn't possible. According to Apple's documentation:
While an extension is running, it communicates directly only with the
host app. There is no direct communication between a running extension
and its containing app; typically, the containing app isn’t even
running while its extension is running. In addition, the containing
app and the host app don’t communicate at all.
You can request network access for your keyboard, but my guess is that most people would refrain from downloading any keyboard that has the capacity to log their keystrokes.

Using gameKit peer-to-peer connectivity when app is in background (e.g. while multitasking)

I am trying to build an app that will use the game kit peer-to-peer connectivity on the iPhone in order to find other people around you who are using the app and exchange information with them.
My question is- is it possible to use peer-to-peer connectivity when app is running in the background and when iPhone is asleep? If yes, do I need to do anything special?
Also, Will I be able to use geo-location, local notification and HTTP request when app is running in the background/ when iPhone is in sleep mode?
The background mode in iOS is very restrictive.
When your application moving to the background you have a "finite-length time" granted by the OS to let you finish the work properly (finish a download, save a file, close some connections, etc.). After that you can do nothing expect for some long tasks permit by iOS.
The only long task that iOS lets you run are the:
audio
geo-location
voip
newsstand
external-accessory
bluetooth-central
(Source)
So if you use the peer-to-peer connectivity over the bluetooth you may (in theory) do that in the background mode. This is the same for the geo-location.
However if you want use the local notification you'll need to register them before moving to the background, and the same for the HTTP requests.
For more information check this doc: App States and Multitasking.

Listen to BlackBerry keyboard events while running in background

How do I create a background application which continuously listens to key combination, e.g. 1234# or 5678#, to launch another application in BlackBerry.

Resources