blackberry-10

Set Image Source on ImageView BlackBerry

跟風遠走 提交于 2019-12-11 14:26:10
问题 How to set imageSource on ImageView as url? ImageView { imageSource: "http://myrrix.com/wp-content/uploads/2012/06/stackoverflow.png" } This is not working, I can only set the image as "asset: enter code here ///images/myimage.png" on the ImageView. How to set the source to be from URL? 回答1: You can not directly load image from web. You need to make a network request using QNetworkRequest, QNetworkAccessManager, and QNetworkReply classes & on getting reply load that QByteArray in ImageView.

Disable screen during call

回眸只為那壹抹淺笑 提交于 2019-12-11 11:44:45
问题 I'm working on a BB10 app that needs to disable the screen in the same way that holding it close to your face does during a call. I implemented a proximity sensor to detect when the screen should be disabled or enabled, but BB10's APIs don't seem to provide a way to turn the screen on or off. What can I use to disable and re-enable the screen? 回答1: You can solve this by adding a Container around the outermost Container in the QML file, and setting its background to Color.Black . Then added an

Issue with arm and x86 in blackberry10 wikitude app

情到浓时终转凉″ 提交于 2019-12-11 09:51:40
问题 I am working on a Blackberry 10 app using wikitude SDK. I am using the documentation on the website and adding the libraries to the project . When the project is built , I am getting an error with "ntox86-ld" . I am new to this and cannot debug the error. The error is: 19:53:36 **** Build of configuration Simulator-Debug for project ARCascadesProject **** make -j4 Simulator-Debug make -C .//translations -f Makefile update cd x86 && D:/bbndk/host_10_2_0_15/win32/x86/usr/bin/qmake -spec

Unsupported Intents on BlackBerry Android Runtime

大城市里の小女人 提交于 2019-12-11 09:39:43
问题 I'm converting one app to the Android Runtime, however some of my Intent actions aren't working, no error/exception is shown on LogCat. I can see my onSaveInstanceState code being run as if the Activity was being paused, but nothing comes up. When a IntentChooser is used, I can see in the logs: "invoking onCreate() for Activity com.android.internal.app.ChooserActivity" , however on the PlayBook, nothing happens. On the BB10 simulator, the chooser comes up (i.e with Messages and SMS options)

QML binding not updating

99封情书 提交于 2019-12-11 04:58:36
问题 I have a simple BB10 app with a QML front end. The GUI consists of a couple of buttons and a label Page { Container { Label { text: app.alarmCount() } Button { text: qsTr("Resend Notification") onClicked: { app.resendNotification(); } } Button { text: qsTr("Stop Service") onClicked: { app.stopService(); } } Button { text: qsTr("Kill Service") onClicked: { app.killService(); } } } } And the C++ class class ApplicationUI: public QObject { Q_OBJECT Q_PROPERTY(QString alarmCount READ alarmCount

Get Device IMEI BB10 C++/QML

血红的双手。 提交于 2019-12-11 04:36:21
问题 Is there a way to get IMEI of BB10 using qml or cpp? I don't see any documentation for it. https://developer.blackberry.com/html5/apis/blackberry.identity.html This did not help me. 回答1: There is HarwareInfo API for getting IMEI. #include <bb/device/HardwareInfo> QString HardwareInfo::imei() You will need permission "read_device_identifying_information" to use this API. And link device lib in pro file, LIBS += -lbbdevice 来源: https://stackoverflow.com/questions/18688063/get-device-imei-bb10-c

How open sub window with three buttons on clicked list item like shown in screenshot with red square

与世无争的帅哥 提交于 2019-12-11 03:37:36
问题 I have to open a sub window on clicked list item. This window contain three buttons these are also clickable. See Screenshot. In iphone it is possible using TableRow. Is there way in android like iphone or any different way 回答1: create you layout including this expanded View that you want to show on ListItem Click add the following code to Your LISTViewclick listener where actually want to make it visible Count is a variable to check if number of times it is clicked is even or odd so as to

How to implement the Button click event on listview in blackberry 10 cascades qml?

可紊 提交于 2019-12-11 02:13:30
问题 I have a list view with buttons but am not able to triggered the click event for buttons in qml blackberry 10 ? Can anyone help me about this regards, ListView { verticalAlignment: VerticalAlignment.Center horizontalAlignment: HorizontalAlignment.Center layout: FlowListLayout { } dataModel: mydatamodel listItemComponents: [ ListItemComponent { type: "item" Container { layout: DockLayout { } Button { id: samplebutton text: "Button" horizontalAlignment: HorizontalAlignment.Right onClicked: { /

QAugmentedReality on BB10

本小妞迷上赌 提交于 2019-12-11 01:09:48
问题 I want to create augmented reality application on BB10. But there is no 3rd party library is available for BB10. So i am thinking to implement Augmented Reality using QAugmentedReality of Nokia because blackberry said that Qt application will run on BB10. Is there any sample AR application in QT so i can run that on BB10 and check if it work or not then i start developing my application. 回答1: In the official tutorial for QAugmentedReality there is a link to a sample application towards the

How to detect network in Blackberry 10 Dev Alpha Simulator using qnx.net.NetworkManager on Air SDK

南笙酒味 提交于 2019-12-10 22:18:59
问题 I'm trying to detect internet connection of the simulator using this code if ( NetworkManager.networkManager.isConnected(NetworkType.WIFI) || NetworkManager.networkManager.isConnected(NetworkType.CELLULAR) ) { //we have connection!! doSomething(); } else { //no connection =( showError(); } However, this always returns false. It seems that the simulator uses another kind of network not identified by NetworkType constants. I think this happens because VMWare makes connection possible through