blackberry-10

Blackberry 10 Cascades - Images inside Text Area

筅森魡賤 提交于 2019-12-12 10:57:47
问题 I am designing an application that needs to replace some text inside of a TextArea with an Image. For example, if I enter a phone Number that exists on the Native contacts list, I need to replace the text on the text Area with an Image and be able to add more phone Numbers (the attached image illustrates the procedure). This is the native messaging application, but I can't find an API to do this in Cascades. Thanks for the help. 回答1: I believe what you are looking for is the FlowListLayout

How can I call a pointer of an QObject in a QML File?

老子叫甜甜 提交于 2019-12-12 09:53:39
问题 I'm developping an application for Blackberry 10 and I'm using the Momentics IDE (BB native SDK). I get the following error when I try to execute the code below. Any one have an idea how can I fix this ? Error QMetaProperty::read: Unable to handle unregistered datatype 'DataHandler*' for property 'xxx::dataHandler' asset:///main.qml:104: TypeError: Result of expression 'xxx.dataHandler' [undefined] is not an object. Process 627863799 (xxx) terminated SIGSEGV code=1 fltno=11 ip=08055b30(

Appworld market link in Android runtime

不打扰是莪最后的温柔 提交于 2019-12-12 09:11:30
问题 I have an app on the appworld and I would like to add a link to it in my app so that people can more easily rate it. Normally on the android market I would do something like: Uri uri = Uri.parse("market://details?id=com.example.test"); Intent intent = new Intent(Intent.ACTION_VIEW, uri); startActivity(intent); Or on Amazon I would do: Uri uri = Uri.parse("http://www.amazon.com/gp/mas/dl/android?p=com.example.test"); Intent intent = new Intent(Intent.ACTION_VIEW, uri); startActivity(intent);

How to lock phone or reset password BlackBerry 10 with Native SDK API?

帅比萌擦擦* 提交于 2019-12-12 04:49:29
问题 I'm beginning to develop Blackberry 10 (using Native SDK). Is there any method to lock phone or reset password ? I tried to read the documentation here : http://developer.blackberry.com/native/reference/bb10/library_support_at_a_glance_reference.html But I couldn't find any API 回答1: I think there's no such functions in the current SDK version possibly due to some security limitations on BB10 platform. However, you're still able to listen/respond to such events. The functionality for that

Blackberry 10 Webworks with Worklight Geolocation

孤街醉人 提交于 2019-12-12 04:46:41
问题 I'm working with Worklight 6.1 and WebWorks SdK 2.1 for BlackBerry 10. my issue is when I try to get the User location invoking this function : navigator.geolocation.getCurrentPosition( onSuccessGeo, onErrorGeo, {enableHighAccuracy: true}); I get this error : TypeError: 'undefined' is not an object (evaluating 'e.code') geolocation.js:115 Though when I run a sample project based on Webworks SDK 2.1, with cordova, the geolocation works fine. I made the same configuration and permissions for

blackberry cascades mapview

有些话、适合烂在心里 提交于 2019-12-12 03:54:20
问题 Hi I am trying to implement a mapview using blackberry cascades based on this link but whenever I import maps import bb.cascades.maps 1.0 , the QNX IDE throws out an error saying bb.cascades.maps is not installed . I have set up the environment exactly as described in the developer site and dont seem to understand how do i install this module. 回答1: They seem to have left out some steps. Not all cascades objects are loaded by default into the development system, but they can be added at

Make XML data show in listItemComponents in Blackberry 10 Cascades QML from C++

家住魔仙堡 提交于 2019-12-12 02:24:40
问题 I'm working in Blackberry 10 Cascades, QML and C++ QT, and I am trying to get some XML data from a small php webservice I wrote, to load into the list on the Blackberry 10 Dev Alpha Simulator I'm using - but it's not working. That is the xml data does not load into the ListView of QML document, to show on the screen of the Blackberry Simulator. I need help to get that work. I had started with an example that involved a regular http request, and modified it to make it customized to my purposes

Does porting Android application to BB 10 causes performance issues?

半腔热情 提交于 2019-12-12 02:16:02
问题 I am very new to BlackBerry 10 development. Reading some of the documents I could understand that it is possible to port Android applications to BB 10. In fact it is the only way one can develop apps for BB 10 using JAVA language. I really wonder porting the apps will ever cause any performance issues in BB 10. My client is very particular about the performance of the application which we are developing. Can any of the experts here tell me whether there is a chance that the ported application

How to call c++ function from qml and change the lable text

核能气质少年 提交于 2019-12-12 01:51:00
问题 I'm new to Blackberry 10 development. I've created simple BB 10 cascades project. I want to change the text of a label through c++ function. main.qml import bb.cascades 1.0 Page { content: Container { id: containerID Button { id: button1 objectName: "button" text: "text" onClicked: { btnClicked("New Label Text"); } } Label { id: label1 objectName: "label1" text: "Old Label Text" } } } Now in which file i've to declare and in which file i've to define the function btnClicked(QString) function.

An internal error occurred during: “Launching test”. org/eclipse/jdt/debug/core/JDIDebugModel In Eclipse

只谈情不闲聊 提交于 2019-12-11 19:09:50
问题 Installed eclipse plugin with the referance this link but i got error when run project as Blackberry Android Launch Please check screenshot 回答1: Make sure that eclipse.ini AND the path variable of Windows uses the version 6 of Java, not the 7. Make sure you have the supported version of eclipse: Eclipse version 3.8 for the latest version of the bb plugin 来源: https://stackoverflow.com/questions/15723104/an-internal-error-occurred-during-launching-test-org-eclipse-jdt-debug-core