Calling native code of WebWorks

I've asked this question before and got a good answer pointing to this link:

https://github.com/BlackBerry/WebWorks-community-APIs/tree/master/BB10/template

He has me in trouble. Not because of it be misled, because it was absolutely huge.

If someone can show the absolute essential to call native code (no javascript) just add 2 numbers and returns the response, it would be much appreciated.

As far as my own experiences with native extensions go, the model that you have linked in the first post is about as simple as that. If you draw the relevant code for the style of appeal that you need (aync, sync, reminder, etc.) the rest of the toy seems to be necessary for the interface JNext function properly.

It was a bit complicated when it came to compiling the extension, by adding in the webworks sdk, then compiling the webworks project, but I can't see much thing to remove from this example.

Tags: BlackBerry Developers

Similar Questions

  • Can I call air code or a "sub - app" go within an application native iOS?

    I work with another developer who built applications native iOS and I wanted to provide some functionality with air as part of an application, they are building.  Is this possible?  It should do the opposite?  The Actionscript 3 library, I'm hoping to access it from the native application is Away3D.

    Adobe Air is UiApplication. You cannot embed it native application. But you can build the native extension which will give you access to the native code of adobe air

  • How to use existing java features like call webservice etc in webworks 2.0

    I have two or three existing features like calling a webservice /construct and sending a xml file to a url etc... developeb in java base. I want to use these features in my blackberry application 2.0 10 webworks. is it possible to do?

    You cannot call Java API in WebWorks BlackBerry 2.0 application. This SDK is intended for BlackBerry 10 where the Java Runtime does not exist.

    For BlackBerry WebWorks 10 applications, you can create plugins in the native (C/C++) layer, or code directly with Javascript. JavaScript offers features POST quite directly to send messages / data URL via the XMLHttpRequest object that would probably be a good fit.

  • Newbie wanting to AIR w / extensions to native code and the Protocol of Android accessory

    My interests include prototyping and very specific to very specific real-world applications of programming solutions.  So I bought a Playbook after viewing the quick "prototyping" video in this blog:

    http://devBlog.BlackBerry.com/2011/12/BlackBerry-PlayBook-Arduino/

    I tell myself I can do cela or something similar with PIC Basic Pro and a Microchip IC.  Although it has been nearly six months, from what I can tell, the RIM developers have failed to deliver on explaining how to use native code and the ancillary Protocol Android to connect in series on client's port to the mini-USB of the Playbook.

    Is RIM people please, show us how set up the programming environment, use the code, the mini-USB port on client Playbook, the adapter USB (where to buy, what is it exactly?), so we can use the USB client connected to an Integrated Circuit Programmable to connect in series with an AIR running on the Playbook application.

    Kenneth Mark Klausner

    How this kind of thing is that you have the hardware (Controller USB etc.), and there different registers, buffers, etc. that must be handled.  The first layer of software, what made this manipulation, is a device driver. While in some operating systems (Linux, for example), you can write yourself, or port code Besides, material in the PlayBook is accessible only by the drivers as part of the operating system, which means that the RIM should provide their.

    These drivers are may be incomplete. We do not know that for some.

    Drivers expose a particular interface to the next higher step of the software, an interface that must be respected. This interface is generally quite low, and the driver can support the features that cannot be exposed to third party software, so for this and probably other reasons, we can not directly access (and are prevented by security mechanisms).

    There is another layer of software on top of the pilot, commonly called a library. This library is also provided by RIM, as part of the operating system.

    This library can be incomplete as well. We do not know the details, but I suspect someone who knows this level of the design of the system and who attended the BB10 Bluetooth and USB discussion group would be able to interpret what they heard there to clarify.

    It's this library which provides what we call a bit of hand-wavingly API 'USB '. This is an interface in C language, with a set of data and calls structure function definitions that enable higher level code perform different operations related to USB.

    If you want to write a DONKEY, you write about this library, not the level of driver and not material. You have no choice in this matter, as it is applied by the security of the OS.

    So to sum up, if we refer to 'USB API' they're talking about essentially the library routines, and it is necessary to talk to this API to get whatever it is the case here.  The API can be described in the header files (there is something), or maybe he's going to be an API different than what I see out there. Whatever it is, it is undocumented in other places at the moment, so all who want to enter this need to make much low level experiment (talking to the library).

    They can have the documents which cover this and perhaps code samples to talk to the library. If the version of the operating system we have has the incomplete versions or buggy drivers or libraries, this could explain why they have not pushed this documentation and code for us.

    I think that I heard that they are gathering input (requirements, use cases, comments) from people in this session.  Who tells me that they are still working on some details, and when they are at a stage like that they simply don't tell us publicly where they are, deadlines, or what it will look like when it is done.

    And so expect.

  • Trigger the native code in WebView - Invocation?

    Hello

    I have a WebView inside my application and trigger the native code on certain events in the Web view. In iOS or Android, I would like to make a call to a URI (myapp://dothisfunction) and I as regged of URI in the app. But is it possible in 10 BB? What is the alternative?

    / Johan

    Just the handle NavigationRequested cascading. Or call the native side of JS using navigator.cascades.postMessage () and the managing of messageReceived. No need for the URL custom or the framework Invoke.

  • Machine virtual Java to native code: EXCEPTION_ACCESS_VIOLATION (0xc0000005)

    Originla title: Re: java

    I received this error message that the accident happened outside the Virtual Machine Java to native code. A fatal error has been detected by Java runtime environment:
    #
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc = 0x7c919af2, pid = 3388, tid = 1364
    #
    # Version JRE: 6.0_26 - b03
    # Java VM: Java hotspot Client VM (20, 1 - b02 mixed mode, sharing windows - x 86)
    # Problematic frame:
    # C [ntdll.dll + 0x19af2]
    #
    # If you want to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    # The accident happened outside the Virtual Machine Java to native code.
    # See problematic frame for where report them the bug.

    Hello

    · Were there any changes made on the computer before the show?

    1. run chkdsk /r on the drive and check if it helps. You can visit the link below for the procedure: how to perform disk error checking in Windows XP: http://support.microsoft.com/kb/315265

    2. uninstall older versions of java and install the latest version and check if that helps. You can consult the links below for the procedure:

    How to uninstall Java on my Windows computer? : http://www.java.com/en/download/uninstall.jsp

    Download Java for Windows: http://www.java.com/en/download/inc/windows_new_ie.jsp

  • All plans to support Native Code Android?

    I'm deploying an android game using libgdx framwork which I believe uses native code.

    Are there plans to support native code on blackberry?

    Thank you!

    Hello world

    Thank you for visiting the forums!

    Instead of the native BlackBerry SDK, native (JNI) code is not supported in the BlackBerry Runtime for Android application development platform.

    Duration of blackBerry for apps Android - software features not supported

    https://developer.BlackBerry.com/Android/apisupport/unsupportedapi_blackberry10_software_features.ht...

    The native SDK microsite can be found below.

    Native BlackBerry SDK

    https://developer.BlackBerry.com/native/

  • native code: x 86

    Hello

    I already joined BB plugin in Eclipse...

    Then, after adding nature BlackBerry to my project, I got an error "native code: x 86" in "AndroidMainfest.xml"...

    How can I solve this?

    NOTE: my project contains the SDKs like facebook, google-game-services, inmobi and andengin.

    Thanks in andvance

    The problem is you are testing with the old plugin. You need the 2.0.2 new tools as well as the plugin for new tools. The new tools will allow you to reorganize and deploy applications containing native code.

  • Call native applications

    Does anyone know how we can call native applications such as the browser, email client or AppWorld? I've seen other applications invoke the browser and email, so I know it's possible, but I can't find anything in the documentation of the AIR.

    @Ebscer, there are likely several ways that work, which uses navigateToURL() with a 'plan' appropriate.

    Using of "file:", "http:", "https:" and possibly others should open the browser.

    I don't know if others have been documented yet. I've seen either "app:" or "appworld:" in the Simulator (down in the tree of /pps somewhere under "navigator") but I need to get my tablet before I can experiment more with this as the Simulator, of course, is almost useless for such things.

    There are also several other techniques mentioned at the beginning of this thread: http://supportforums.blackberry.com/t5/Tablet-OS-SDK-for-Adobe-AIR/PDF-word-and-xls-support-in-playb...

  • keywordsManager: (get the native code)

    On ESTK, running on Bridge CS6 this fives me a function:

    $.writeln (app.document.keywordsManager.renameKeyword)

    I get on console:

    function renameKeyword() {}

    [native code]

    }

    How can I get the native code for this function?

    I don't know how the arguments are organized and how it can be used.

    I also have my Active keywords like this:

    app.document.keywordsManager.serializeToXML)

    and I also have other functions, I want to test use, such as

    addKeyword (?), renameKeyword (?), deleteKeyword (?)

    I solve it.

    ~ app.document.keywordsManager.addKeyword (keywordPath:String, useHierarchicalPath:Bollean)

    ~ app.document.keywordsManager.deleteKeyword (keywordPath:String, useHierarchicalPath:Bollean)

    ~ app.document.keywordsManager.renameKeyword (oldName:String, newName:String, useHierarchicalPath:Bollean)

    ~ app.document.keywordsManager.serializeToXML)

    Notes about the creation of sub keywords:

    When useHierarchicalPath is true, the function will search for the string keywordPath and if it detects a vertical bar (for example ' aaa | ") BBB") which means a keyword"aaa"and a Sub keyword 'bbb' will be created. 'aaa' is created if does not exist.

    It's the same logic used on deleteKeyword and renameKeyword.

    Examples:


    addKeyword

    app.document.keywordsManager.addKeyword ("a few words", true); Add the keyword "words".

    app.document.keywordsManager.addKeyword ("things |") (a few words", true); Add the keyword 'stuff' and the keyword void "words".

    app.document.keywordsManager.addKeyword ("things |") (a few words", false); This action adds the key word "things". a few words"and does not take into account the vertical dashboard

    deleteKeyword

    app.document.keywordsManager.deleteKeyword ("aaa |") BBB", true); Deletes the Sub keyword 'bbb '.

    app.document.keywordsManager.deleteKeyword ('aaa', true); Deletes the keyword "aaa" and all its keywords sup

    renameKeyword

    app.document.keywordsManager.renameKeyword ("aaa |") BBB"," aaa ". CCC', true); Rename the Sub keyword 'bbb' to 'ccc '.

    app.document.keywordsManager.renameKeyword ("aaa", "a11", true); Rename the keyword "aaa" to "a11."

    serializeToXML

    app.document.keywordsManager.serializeToXML (); Returns the XML of the entire structure of keywords

  • Is it possible to debug native code via DONKEY?

    Is it possible to debug or add breakpoints on the native C code that is called using a native extension in DONKEY?

    Yes, you are debugging your application on the device of FlashBuilder as usual, and you then use the option "attached to" If the NDK IDE to attach to the running instance. You can debug natvie and FB at the same time. Very shiny!

  • Chemometrics - Non-linear Iterative Partial Least Squares, MathScript and G-Native Code

    I worked with a client on a spectroscopy system and he asks me to do the analysis in components in the application I'm building for him. The current method, I found is what several people have built with MatLab scripts for least partial square. That's great and it works; However, I wanted to convert the native GCode script because I'm that guy.

    After a few days, I was finally able to get the results of the two screws is similar, but not the same thing. I was not able to find an explanation for it on the forums or elsewhere. The important thing I found is that LabVIEW breaks a little when you have a vector calculation as a ' * a, which should translate into a scalar value or a 1 x 1 matrix. When you use this value in another equation, such as the projection X'* a /(a'*a), LabVIEW works only on the first element of X'* a.

    Here, it's in the GCode with the work around to correct one ' * a result:

    It seems unusual that GCode treat a scalar result incorrectly. It was annoying, but I was able to go beyond that.

    My next question is there is some apparent rounded differences between GCode and MathScript that I was not able to explain. This difference amounts to about 1% in the data I have to analyze. I've included the project where I worked to compare the two methods. In the NIPALS_Conversion_LV.vi the left side of the block diagram has a loop structure For which is where the model is generated using the NIPALS and the right side is the application of the model. The NIPALS_Converison.vi contains the original code of MathScript where I worked with.

    Note that the difference between the two results is due to the calculation of you and matrices of B, which are related to each other because of the u. I probed the two vi extensively and everything is equal between them until the calculation of the elements in u. The equation in question is u = Y * ((Y'*t1) / |) (Y'* t1) |), even if it is expressed somewhat differently in the code.

    Any help on this would be greatly appreciated.

    Thank you

    Drew

    Drew,

    I took a quick glance to your project and for me, it seems that you have correctly translated the MathScript in its equivalent in the graphical representation.

    My first inclination on why you see this slight rounding error, is that the functions used in LabVIEW and MathScript can be different (from different DLLs). How these functions given floating point rounding may be different and spreading them error thanks to each iteration of the loop. I suspect that you notice that the error at this time in the program. If you compare every step of the script from the execution of LabVIEW and look out past 10 or if the bits of accuracy, I think you will see this error increase slightly after each step.

    If you can find a specific function during which a significant difference between the script and LabVIEW execution occurs, I'd be happy to review the functions and the differences between the LabVIEW MathScript implementations of functions.

    -Nick-

  • Where code HTML5 webworks project?

    Where to encode a webworks project?

     

    I installed the cordova and git

    I usually built a project too.

    now I want to code the my project with JS and HTML 5

    where should I code that?

     

    You can remove the following lines from the index.html:


    BlackBerry WebWorks



    Thank you

    Naveen M

  • Fusion ADF Service call response code 500

    I'll call Fusion purchase OrderService of PL/SQL.

    Get 500 response code what could be the reason for this?

    The approach documented in this blog has worked for me before, can you confirm if your case is the same and if the same steps of work?

    --

    Jani Rautiainen

    Relationship with the developers of Applications in fusion

    https://blogs.Oracle.com/fadevrel/

  • ADF Mobile: place a phone call with code AMX

    How to place a call from phone with code AMX?    Why isn't when simple ADF Mobile is a development tool for MOBILE PHONES?

    Just use a goLink. Set the parameter to the URL ""such: any number> "."

    Rich.

Maybe you are looking for