blackberry-10

Google OAuth Accept button is disabled

泪湿孤枕 提交于 2019-11-30 15:41:21
I have a Google Drive app running on BlackBerry 10 and PlayBook devices. The OAuth process was working fine for all users. Suddenly on Aug 23rd I received reports from some users complaining the "Accept" button is disabled and can't complete the authorization. So far I noticed that these users use Spanish and Arabic locale (that's what appear so far from the screenshots and support emails they have sent). For the majority of the users, OAuth is working just fine. One thing to note, my app is android app running using the BlackBerry Android runtime. When I tried the same code on android devices

blackberry 10 Unresolved inclusion <QObject>

对着背影说爱祢 提交于 2019-11-30 14:00:59
I'm using the new version of Blackberry (Blackberry 10) . I'm trying to integrate c++ code with QML , but I faced some problems that I thinks connected to other . in the .h file Q_OBJECT , Q_PROPERTY signals and slots shows that there is syntax error . and in the QML file in which I try to use this type (i.e import CustomTimer 1.0 for example) I got this problem module "CustomTimer" is not installed . how to solve this issue??? I'm using QNX Momentics Version 10.1.0 I resolved my errors by right-clicking on my project folder, then selecting Configure -> Add Library... , and then choose

Use of colon after class name in c++

人走茶凉 提交于 2019-11-30 11:55:45
问题 This is a header file extracted from a blackberry 10 helloworld program. #ifndef ApplicationUI_HPP_ #define ApplicationUI_HPP_ #include <QObject> namespace bb { namespace cascades { class Application; class LocaleHandler; } } class QTranslator; /*! * @brief Application object * * */ class ApplicationUI : public QObject { Q_OBJECT public: ApplicationUI(bb::cascades::Application *app); virtual ~ApplicationUI() { } private slots: void onSystemLanguageChanged(); private: QTranslator* m

Calling a QML function from C++

岁酱吖の 提交于 2019-11-30 08:40:40
问题 I'm developing a Blackberry 10 mobile application using the BB Native SDK. I need to call a QML function into my C++ class. I searched a lot on this but I only found the possibility to call C++ into QML not the inverse. You can check this: QML and C++ integration Can anyone help me on this? This is the QML code specifying the function that I need to call which add a marker into my mapview: Container { id: pinContainer objectName: "pinContObject" ... function addPin(lat, lon, name, address) {

Google OAuth Accept button is disabled

…衆ロ難τιáo~ 提交于 2019-11-29 22:24:35
问题 I have a Google Drive app running on BlackBerry 10 and PlayBook devices. The OAuth process was working fine for all users. Suddenly on Aug 23rd I received reports from some users complaining the "Accept" button is disabled and can't complete the authorization. So far I noticed that these users use Spanish and Arabic locale (that's what appear so far from the screenshots and support emails they have sent). For the majority of the users, OAuth is working just fine. One thing to note, my app is

Numeric keyboard not displaying when porting Android app to BB10

点点圈 提交于 2019-11-29 10:57:11
I have an EditText field in my application with inputType="number" . When selecting the field, the normal keyboard appears; it shows the normal Qwerty keyboard without numbers. I want the keyboard to display the number keys in the keyboard rather requiring the user to manually switch to enter numbers. Has anyone faced a similar sort of issue? Is there any workaround for this? I'm running the latest BB10 OS on a Dev Alpha device (released Jan. 30, 2013). 来源: https://stackoverflow.com/questions/14725876/numeric-keyboard-not-displaying-when-porting-android-app-to-bb10

Calling a QML function from C++

断了今生、忘了曾经 提交于 2019-11-29 07:12:28
I'm developing a Blackberry 10 mobile application using the BB Native SDK. I need to call a QML function into my C++ class. I searched a lot on this but I only found the possibility to call C++ into QML not the inverse. You can check this: QML and C++ integration Can anyone help me on this? This is the QML code specifying the function that I need to call which add a marker into my mapview: Container { id: pinContainer objectName: "pinContObject" ... function addPin(lat, lon, name, address) { var marker = pin.createObject(); marker.lat = lat; marker.lon = lon; ... } } Thats what signals and

How can I cast a QVariant to custom class?

烈酒焚心 提交于 2019-11-29 01:52:42
I'm developing a BlackBerry 10 mobile application using the Momentics IDE (native SDK). I have a listview which I want to handle its items click with C++ (I need to use C++ not QML). I can get the index path using the "connect" instruction, but I have problem with parsing a QVariant to a custom class ; Q_ASSERT(QObject::connect(list1, SIGNAL(triggered(QVariantList)), this, SLOT(openSheet(QVariantList)))); QVariant selectItem = m_categoriesListDataModel->data(indexPath); I tried to use the static cast like below Category* custType = static_cast<Category*>(selectItem); but it returns : "invalid

Numeric keyboard not displaying when porting Android app to BB10

杀马特。学长 韩版系。学妹 提交于 2019-11-28 04:32:50
问题 I have an EditText field in my application with inputType="number" . When selecting the field, the normal keyboard appears; it shows the normal Qwerty keyboard without numbers. I want the keyboard to display the number keys in the keyboard rather requiring the user to manually switch to enter numbers. Has anyone faced a similar sort of issue? Is there any workaround for this? I'm running the latest BB10 OS on a Dev Alpha device (released Jan. 30, 2013). 来源: https://stackoverflow.com/questions

QThread emits finished() signal but isRunning() returns true and isFinished() returns false

a 夏天 提交于 2019-11-27 20:17:20
Below is the code for my qthread implementation. I am trying to get gps data from satellite. QThread doesn't produce the finished() signal even when the programs exits gpsSearch() slot function. The function locateMe() is called whenever a button is clicked. The first time when the thread isnt started and the button is clicked it prints true value for isRunning() function and prints false value for isFinished() function. I had to call the quit() function of the QTherad to manually stop the thread. After that it goes to the connected threadQuit() function in the gnssProvider class. But even