how to lock blackberry device 6.0 pro-grammatically?
there is an API called
ApplicationManger.locksystem(true)
but its diprecated in 6.0
According to the BlackBerry OS 7.1 API documentation the parameter force is depricated, the API call should still be valid. Have you tried it?
Related
I have an iOS app that uses the official iOS Flurry SDK.
I need it to report the 'version' in flurry as a custom string that I define.
Currently, events in the app are reported as a version number, like 1.0.0, 1.0.6 (I'm not sure what this even represents, obviously it's not the iOS version):
I need to report this as 'iphone' or 'ipad' based on which device is being used. I can detect whether the device is iphone or ipad, but how do I set the version number that gets sent to Flurry?
I can do this in the Flurry Android SDK by using FlurryAgent.SetVersionName, however there seems to be no equivalent in iOS. I've tried using the 'setAppVersion' method but it doesn't work.
The iOS function for setting the version is setAppVersion. This needs to be called before the Flurry session begins. Here is the documentation.
Is there any other way to take screenshot by code ?
I read this post How to programatically take a screenshot on BlackBerry 10 using cascades?
and i read this too https://developer.blackberry.com/native/reference/cascades/bb__system__screenshot.html
but i need to take the screenshot with minimum API level 10.0.
is there any other way to do this?
thanks
Taking screenshots is available since API level 10.2. All BlackBerry devices recently received an update to OS 10.3.1. So, there should be no problem requiring API level 10.2 in an app.
in Worklight 6.1, as:
WL.Client.isConnected is deprecated
WL.Device.getNetworkInfo available on Android and iOS
How to check the connectivity for Worklight server from a Blackberry Device?
I need this to sync my data when my app is connected (which means that the worklight server is responding).
Please don't tell me to invoke a procedure and check the response status :S
Use WL.Client.connect(options) For Extra Infromation check IBM Info Center
I am going to integrate chromecast SDK into iOS, but here I am bit a confuse with receiver.html and whitelist email that exactly how to go with them.
So anyone please explain me regarding same.
Also tell me if it is compatible with any iOS Simulator instead of device.
Many developers successfully use the iOS simulator. https://developers.google.com/cast/cast_2nd-screen_app_tutorial for iOS and Android.
The Receiver is the HTML5 application that you create that runs on the Chromecast device. Your iOS application talks to the Receiver, the Receiver will fetch your content from the internet based on the information that comes from your iOS application.
I am developing an image-scanning application for BlackBerry. The application takes the user to a success page if the correct image is scanned and a failure page is shown on scanning an incorrect image.
I am using the IBM Worklight framework for developing this app.
My question is: How can I open camera for scanning in BlackBerry?
I have developed the same application for iOS using Worklight. In iOS I've used this JavaScript syntax:
WL.native.show(arg1, arg2, arg3);
So I want to know what will be the syntax for opening camera/native page in the case of BlackBerry.
Just to make things clearer, you do not use WL.NativePage.show in order to use the camera in an iOS device. For that you use the Camera API provided by Apache Cordova.
WL.NativePage.show is meant to transition from a WebView to a native page.
You can, however, of course, use it to pass parameters and do whatever you want on the native side and then return to the WebView...
WL.NativePage.show is available only for iOS and Android.
Anyway,
In BlackBerry WebWorks apps (the type of BlackBerry apps supported in Worklight) you have several options:
Use the Camera API provided by BlackBerry
Use the Camera API provided by Apache Cordova
Worklight currently supports Cordova 2.3 (in Worklight 5.0.6.x) and Cordova 2.6 (in Worklight 6.0).