I'm working on a software that includes 3D graphics. Those are massive enough, so I decided to use OpenGL to keep a quite fluent animation. I selected THREE.js graphic library (WebGL).
Reading the html through a Web browser works very well : WebGL functions are recognized. I did it on my desktop (Win32/Firefox17, please do not judge me on my configuration !) and on a Nexus 10 (Android 4.3, FF24 and FF25Beta, tried with Chrome30Beta but no joy...). But I need to access native data, like the file system, to get informations for my program. So I wrapped my code with WL, and deployed it as an app on my Nexus 10... And so disappeared the WebGL capability... :(
So I looked for a reason to that :
I found on the IBM site two different ideas : in one way, I understand that a JS engine is embedded, in another that WL uses the engine of the default Web browser of the tablet (what I understood the first time)...
Let's be precise with the different engines : On the Nexus, FFs have obviously Gecko engines, Chrome30 is a Blink (webkit-like, version 537.36). Those are the ones detected by window.navigator.useragent as I read directly in the browser, no surprise. In the Eclipse/WL preview, I got different interpreters, depending the browser I selected, FF or IE (not Safari, I don't have it installed), but not the one from my desktop (the ones used are even older than my own FF...). But, when I detect the one used in the app (after wrapping in an apk), it returns an AppleWebkit 534.30/Worklight/6.0...
Maybe I'm wrong (tell me), but if 'Worklight' is in the version of the engine, and if webkit is used even when I suppress Chrome from my tablet (the version is different, but who knows..), I wonder that, for this app, as it's configured, the engine is embedded by Cordova or WL.
If it is so, I agree it allows to read a code with a fully-compatible interpreter, regardless the browser installed on the hardware. But when a webkit engine does not please you for the functions it supports (like WebGL, very partially supported), it looks a problem for me.
Does anybody have a confirmation of how it works ? If the engine is wrapped with the app, do you know if we can choose the one to be included, or configure it (like enabling WebGL ;) ) ? Another idea ?
Thanks,
Vincent.
Worklight applications do not bundle an interpreter. The application will use what that is bundled in the OS.
In other words, the default WebView in Worklight is the one that the OS provides, in the case of Android it uses the bundled WebKit.
This is not something Worklight controls what-so-ever.
You could, maybe, somehow, bundle in your app the Firefox engine libraries and hook it all up together, but the task to do so is incredibly large and complex in size... and not supported by IBM Worklight. Also, I do not know whether Cordova supports this as well ( it is used in Worklight to interface with native functionality).
As for the useragent, the string "Worklight" is attached to it as part of support for IBM WebSphere Portal.
I have a good experience with BlackBerry Java Development Environment. I need to know about QNX based IDE for development of Blackberry 10. I successfully installed and ran a small example.
But here I am not finding any drag and drop IDE. I expected that it contain that type of editor, but unfortunately I am not able to find this feature. I am using following IDE:
QNX® Momentics IDE for BlackBerry® 10 Native SDK
Version: 10.0.4
Also the IDE is not showing all hints. How to get Hints?
Is it required manually include header files?
Please help me where can I find this feature in this IDE?
Just to let you know, drag and drop is now available in Momentics (version 10.0.9). You can drag UI components into your code window and it will auto populate the code for you.
Hi i got following answer from Blackberry adviser
http://supportforums.blackberry.com/t5/Cascades-Development/Visual-Drag-and-Drop-Editor-for-Cascades/m-p/1759935#M300
This is currently not available. Please consult the BB NDK documentation for information and updates:
https://developer.blackberry.com/native/
https://developer.blackberry.com/cascades/
Thanks!
If there is error on your qml file that will show it on right square corner so you can come to know that something is wrong on qml. for adding header file and all it not gives any hint like eclips android and eclipse bb is give to users. You have to manually find which header file is missing and add that.
I am debugging an application in Eclipse. It works fine but at some methods, for example enterEventDispatcher(), it shows me source not found. Which source files should be attached to avoid this problem? I am not getting it clearly.
It sounds like you are trying to debug into the RIM BB OS code. As far as I am aware, RIM does not provide the source code for their API, so there is no source to attach.
I need to add a PDF reader that reads a PDF document from a URL to my Blackberry Playbook app. Is it possible?
The PlayBook will come with Adobe Reader, so you shouldn't have to add anything else.
In principle, using QNXApplication.qnxApplication.openFile('myfile.pdf') should be sufficient to open that file in Reader.
None of this has been documented yet by RIM so you will have to wait at least until the release of the 1.0 SDK (expected prior to the tablet shipping, but maybe not by much) to learn more.
I just embedded Adobe Reader X ActiveX control in a small sample applications. All controls related to Annotations and Comments are disabled.
Why is that? Can I enable them via code?
This behavior seems to be intensionally and can't be changed.
The answer from Adobe can be found here: http://forums.adobe.com/thread/757876
My case was simple, uninstalled and installed the latest version and the same pdf file was open to be annotated.