GUI or Console output javascript extension

While working at webworks I have user "alert" for the values of the variables and to control the flow of control.

Now I started to write javascript in java extension

but whenever I tried Dialog.alert ("message"); the extension projects working

is it like the extension of javascript may not show any output GUI?

If that's how I can see in the console?

How can I check the values of variables?

or whenever I click on a button I want to see that the id of the function being called correctly so I usually put alert()

is there something that I can put inside the java classes or can print the output on console?

He got so called DIalog.alert I have to do

class Recording extends Thread{

    public void run(){
        UiApplication.getUiApplication().invokeAndWait(new Runnable() {
                public void run() {
                   Dialog.inform("Thread started inside java and this is inside run");
                }
             });
    }
}

Tags: BlackBerry Developers

Similar Questions

  • RT - cRIO Console output - Custom output / system Message?

    Hello

    A cRIO has a console output that sends messages system, informing the user that is running, or if there are system errors. This can be seen through a browser or by connecting a monitor the the cRIO. See attached screenshot of the output in my browser.

    Is it possible to programmitcally send messages to the screen? cRIOs did not have a UI other than that, so it would be nice if the application can send messages to the screen for debugging/status information.

    Thank you

    Hello Jacques,.

    We actually have this feature. You can use the String Debug function for the output in the console of any of our targets in real time.

    http://zone.NI.com/reference/en-XX/help/370622K-01/lvrtvihelp/rt_debug_strings/

    You can also disable the console if there are some details that you do not want show and using write serial output.

  • Simulator of showing JVM Console output to the screen

    Somehow I have activate the Blackberry Simulator displays the console output FMV at the same of the Simulator screen.  How to disable this option?  Any help would be appreciated.

    Running the clean.bat file located in the directory of Simulator.  This will reset the BlackBerry smartphone Simulator to its default state.

  • How to get the Javascript Extension written for Tablet Playbook/submit to App World

    WebWork SDK "TABLETS" documentation:

    https://developer.BlackBerry.com/HTML5/documentation/ww_release_notes/bb_webworks_sdk_tablets_rn_2.2...

    It shows that we can

    "use the JavaScript extensions-

    You can create JavaScript extensions to enhance your applications by adding them to archive the application before compiling the source of the application. You can modify and distribute these extensions. "

    However, even I can successfully test the extension on my local playbook in the folder "\BlackBerry WebWorks SDK for Tablet 2.2.0.5\bbwp\ext", I can't find doc showing what to do during the presentation of the app on the app store with my extension. WeBWorK for smartphone seems obvious because it uses the java & jar, but just can not find information about the expansion on tablet...

    The extension is integrated within your compiled cod or bar. you have nothing to do rather than download the bar or COD.

  • Widget Javascript Extension: reminder

    Hi guys,.

    I am currently developing widgets using Javascript Extension also.

    I am facing a problem.

    In my class that extends from ScriptableFunction, how do I manage an object passed to call methods as arguments and representing a "pointer" to the javascript function to use as the asynchronous callback?

    How can I call it?

    Thank you very much.

    Concerning

    Scarex

    Hi Scarex,

    It's a really great question.  You can execute JavaScript in Java by using the executedScript() method which accepts a string as a parameter.  Rather than pass a pointer to a JavaScript method, you can provide the name of the function as well as all the parameters.

    Here's an example of how you could spend two whole arguments to a ScriptableFunction and make a call to a JavaScript function named 'add', passing the following values:

    ScriptableFunction _myFunc = new ScriptableFunction()
    {
       public Object invoke(Object obj, Object[] args) throws Exception
       {
          if (args.length == 2) {
             int param1 = ((Integer)args[0]).intValue();
             int param2 = ((Integer)args[1]).intValue();
             _browserField.getScriptEngine().executeScript("add(" + param1 + ", " + param2 + ")", null);
          }
          return UNDEFINED;
       }
    };
    

    Here's what could resemble the method add() method JavaScript, defined in the BlackBerry Widget application web content:

    
    

    I hope this helps.

    Best wishes

    Adam

  • call a javascript extension

    Hey

    I am very new to Blackberry/Java development if any help would be great.

    Using the tutorial on how to create blackberry javascript extensions that I wrote a very simple extension that will download a file from you.  Everything seems fine, I can export the JAR but I get the following in eclipse warning:

    Description Resource Path Location Type
    Signing Required: RIM Blackberry Apps API (0x52424200): Import uses protected Class net.rim.device.api.web.WidgetConfig ByteReaderExtension.java /TribalWorksByteReader-OS6/src/tribal line 5 BlackBerry Protected API
    

    When I try to use the extension to javascript in my application webworks, nothing happens.  Simply, it stops and does not receive from past the line, where I make my call.

    alert("before extension call");
    tribal.download.downloadFile(remoteFile, localFile);
    alert("after extension call");
    

    In the emulator, I get the first alert, but not the second.  I'm also a few calls from Dialog.alert in my extensions javascript that ever fire.  Kind of I'm stuck at this stage since there is no errors so I don't really know where to start.

    Someone knows something similar or know how I can fix this?

    Packer widget 1.5

    OS: 6.0.0.337

    Device: 9800

    I am also to build my javascript extension nuer Blackberry JRE 6.0.0

    Edit: I'm also compiling the application with bbwp.exe

    Thank you!

    Chris

    I thought about it.

    I used a file struggle to update the index.zip and compile it with bbwp.exe.

    I forgot to add the ext for the zip folder.

  • PIX: How to break the long console output?

    Hello!

    How can I break up of long on the (v.6.3) PIX Firewall console output?

    Thank you.

    Type "sho run" (or "sho conf"). At a command prompt, press 'Q', this will take you to the command prompt.

  • What controls available for javascript extensions?

    Hello

    I would like to know what controls are available for javascript extensions. I mean, that control can I put on a pdf page or nearby? I read the documentation and I hope I'm wrong, because I've heard they can be put in a dialog box. Thanks in advance

    Controls that you can place on a page that can trigger the code are different types of form fields. You can also create custom for a document toolbar buttons.

  • any debug console of javascript for web application debugging?

    Hi, expert,

    I asked the question before (link is: http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/any-javascript-debug-console-for...), here's the answer I got this time:

    From about 7.0, you can use the 5.0 and web Inspector, you can debug using our tools, but in 6.0, you're stuck with more traditional methods like chicoxml?' suggestion s to the try/catch statements or alert

    It is a follow-up on issues. For 5.0, it is said that I could use the tools of the RIM. Does anyone know what are the tools that they are? Somehow, I couldn't find any related link.

    I find a debugger of widget RIM, we I have to use it if my application is packaged as a widget? It seems that widget is outdated as well.

    Moreover, our web application is just a standard URL that works on all browsers and OS.

    Any help would be much appreciated. Thanks in advance.

    Hi fold.

    I believe that you must compress your site like a webworks app to use the 5.0 debugger. It would be very hard to do, but would be limited to 5.0

    I'm sure that Weinre supports debugging on a real device.

  • Check WebLogic Console output in the log files

    Hello

    I want to save my messages of the weblogic console and SOP of printing in a log file to analyze the results and the exception. For example, suppose I have a booth along the JVM field on which a WAR or EAR file deployed. The output of the print statements and thrown exceptions appear on the console of the black JAVA virtual machine but I want them saved to history and the track. WebLogic Server connects to them and put somewhere or we need to do it manually? If yes then what is the way to do it?

    Concerning

    -Magwaa

    Hi Magwaa,

    Take a look at this blog post explaining how to redirect the output to the console: Blog of Fusion: Weblogic: Console Redirection of log file output

  • GUI for Console ESX?

    Just purchased and installed with ESX vSphere. However, I'm really not up on top of the Linux CLI.  Is there a GUI for the ESX console?  If so, how can I install / start?  Thank you.

    vSphere Client is a graphical interface for ESX.

    ---

    MCSA, MCTS, VCP, VMware vExpert 2009

    http://blog.vadmin.ru

  • How to run terminal console of the CRIO output rtexe

    Hello

    I want to run the rtexe application in CRIO (9014) from the console output terminal. In my application the availabe lan port is connected to any other device using cross-over cable. That's why I want to change application console using the console terminal. I tried the taskspawn command but the crio restarts. Is there a command so that I can run the terminal console application.

    ... I don't know how to get any input from keyboard (the new path of application) of the console terminal...

    You can use the interface for RS232 communication standard series. If for example you send 1, 2 or 3 as a string to the cRIO and then you change by program the ni - rt.ini to change the path of access between a startup2.rtexe and startup1.rtexe, startup2.rtexe.

    Moreover, I have to restart the controller every time I change the path.

    When you use the method with the executable and then one more, then Yes.

    IAM cannot use the Subvi because I need to change code fpga also to different instances.

    I don't understand why using SubVIs on the RT does not give you the ability to change the fpga code.

    If the second method example would be Sub1.vi, Sub2.vi and Sub3.vi. When you get the 2 interface command series, you close the reference to the FPGA1.vi that is used in Sub1.vi and stop Sub1.vi. Then, you start by program Sub2.vi where you open and run the FPGA2.vi.

    Christian

  • Cannot compile BB Widget with JavaScript Custom Extension

    Hello:

    I have came across the entire video creating a Javascript Extension customized for BB Widgets and made my own. I made some functions available and named my main package as 'rgpackage' and this is where all of my classes.

    After that, I just exported to a JAD/JAR file (just like the video says).

    Open Web plug-ins, BlackBerry (v2.0.0.201003191451 - 33) and a new project of Widget of BB.

    A new ext folder appeared and I dragged my JAR/JAD file in this folder.

    Went to the file config.xml by default BB Widget Config Editor and added functionality. Mine appeared in the list, so I double clicked it.

    Everything is fine now. Add the code to my main index.html file to test my extension.

    When press the 'Run' button, my widget has started to compile (and also the extension) and this message keeps appearing (and I can't get rid of it... at least I do not know how and what could happen):

    [INFO]              Compilation of widget
    C:\Users\Andy\AppData\Local\Temp\widgetGen.3461070221272448531372.tmp\blackberry\web\widget\autogen\WidgetConfigAutoGen.Java:27: package rgpackage does not exist
    _widgetExtensions.addElement (rgpackage again. RGPhotoTakerExtension());

    Please help as I cannot move with the development because of this error (weird?).

    Thank you in advance.

    Andy

    Trying to get this to work finally found the problem.

    Anyone for reference:

    During the export of JAR file, the 'resources and Export Java source files' option should be selected instead of "Export generated resources and class files". In my Eclipse, the last of them has been selected by default.

    Unfortunately, the video tutorial is not clear on this point. Anyway, you can see in the video that the correct option is selected, but because it is not mentioned, it can be confusing as it dawned on me.

    But now, everything works as expected. Finally!

    I thank everyone.

    Andy

  • Output console stops

    I'm trying to use the console of my NDK application output to diagnose a problem that happens very sporadically, sometimes only after an hour or two, etc.  But I found that the exit console produced in Momentics usually stops after a few minutes, so that at the time a problem occurs, I don't get to see the relevant console output.

    All other users have encountered this problem?

    The output that all go to the logs/log file of your application, so that you could post-mortem sandboxed no troubleshooting by checking this file?

  • Problem in javascript for OS 6 API extension

    I wrote an application for smartphone using Webworks with javascript extension. I created a JavaScript library using barcode API of OS 6.0. Ideally WebWorks support OS 5.0 and above so that any javascript extension written using OS6.0 API should work. I followed the direction:

    http://docs.BlackBerry.com/en/developers/subcategories/?usertype=21&category=BlackBerry+WebWorks+for...

    I created a library for barcode scanner added this library in my webworks app and try to compile. It gives me error all the APIs I took the OS 6.0. as

    ********************************************************************************

    DemoProject BUILDING

    cmd.exe /c bbwp D:\abc\projects\webworks\workspace\DemoProject\build\DemoProject.zip/o D:\Manish_Ranjan\projects\webworks\workspace\DemoProject\build

    [INFO]                  Parsing of the command line options

    [INFO]                  Bbwp.properties analysis

    [INFO]                  Validation of archive application

    [INFO]                  The analysis of config.xml

    [INFO]                  The application of filling source

    [INFO]                  Compilation of application BlackBerry WebWorks

    C:\Users\abc\AppData\Local\Temp\widgetGen.1978923101309259162010.tmp\extension\barcode\BarcodeFunction.Java:8: package net.rim.device.api.barcodelib does not exist

    Import net.rim.device.api.barcodelib.BarcodeDecoder;

    ^

    C:\Users\abc\AppData\Local\Temp\widgetGen.1978923101309259162010.tmp\extension\barcode\BarcodeFunction.Java:9: package net.rim.device.api.barcodelib does not exist

    Import net.rim.device.api.barcodelib.BarcodeDecoderListener;

    ^

    C:\Users\abc\AppData\Local\Temp\widgetGen.1978923101309259162010.tmp\extension\barcode\BarcodeFunction.Java:10: package net.rim.device.api.barcodelib does not exist

    Import net.rim.device.api.barcodelib.BarcodeScanner;

    ^

    C:\Users\abc\AppData\Local\Temp\widgetGen.1978923101309259162010.tmp\extension\barcode\BarcodeFunction.Java:18: package com.google.zxing does not exist

    import com.google.zxing.BarcodeFormat;

    ^

    C:\Users\abc\AppData\Local\Temp\widgetGen.1978923101309259162010.tmp\extension\barcode\BarcodeFunction.Java:19: package com.google.zxing does not exist

    import com.google.zxing.DecodeHintType;

    ^

    C:\Users\abc\AppData\Local\Temp\widgetGen.1978923101309259162010.tmp\extension\barcode\BarcodeFunction.Java:59: cannot find symbol

    symbol: BarcodeScanner class

    Location: class bar code. BarcodeFunction.ViewFinderScreen

    private BarcodeScanner _scanner;

    ^

    C:\Users\abc\AppData\Local\Temp\widgetGen.1978923101309259162010.tmp\extension\barcode\BarcodeFunction.Java:70: cannot find symbol

    symbol: variable BarcodeFormat

    Location: class bar code. BarcodeFunction.ViewFinderScreen

    formats.addElement (BarcodeFormat.QR_CODE);

    ^

    C:\Users\abc\AppData\Local\Temp\widgetGen.1978923101309259162010.tmp\extension\barcode\BarcodeFunction.Java:72: cannot find symbol

    symbol: variable DecodeHintType

    Location: class bar code. BarcodeFunction.ViewFinderScreen

    hints.put (DecodeHintType.POSSIBLE_FORMATS, formats);

    ^

    C:\Users\abc\AppData\Local\Temp\widgetGen.1978923101309259162010.tmp\extension\barcode\BarcodeFunction.Java:75: cannot find symbol

    symbol: BarcodeDecoder, class

    Location: class bar code. BarcodeFunction.ViewFinderScreen

    Decoder BarcodeDecoder = new BarcodeDecoder (hints);

    ^

    C:\Users\abc\AppData\Local\Temp\widgetGen.1978923101309259162010.tmp\extension\barcode\BarcodeFunction.Java:75: cannot find symbol

    symbol: BarcodeDecoder, class

    Location: class bar code. BarcodeFunction.ViewFinderScreen

    Decoder BarcodeDecoder = new BarcodeDecoder (hints);

    ^

    C:\Users\abc\AppData\Local\Temp\widgetGen.1978923101309259162010.tmp\extension\barcode\BarcodeFunction.Java:80: cannot find symbol

    symbol: BarcodeDecoderListener, class

    Location: class bar code. BarcodeFunction.ViewFinderScreen

    BarcodeDecoderListener decoderListener = new BarcodeDecoderListener() {}

    ^

    C:\Users\abc\AppData\Local\Temp\widgetGen.1978923101309259162010.tmp\extension\barcode\BarcodeFunction.Java:80: cannot find symbol

    symbol: BarcodeDecoderListener, class

    Location: class bar code. BarcodeFunction.ViewFinderScreen

    BarcodeDecoderListener decoderListener = new BarcodeDecoderListener() {}

    ^

    C:\Users\abc\AppData\Local\Temp\widgetGen.1978923101309259162010.tmp\extension\barcode\BarcodeFunction.Java:92: cannot find symbol

    symbol: BarcodeScanner class

    Location: class bar code. BarcodeFunction.ViewFinderScreen

    _scanner = new BarcodeScanner (decoder, decoderListener);

    In my extension javascript library.xml file I defined the platform tag.

    Although if I write any extension of javascript for the API available in OS 5.0 that works very well. Is there something more I need to follow for OS 6.0 API-specific javascript extension?

    Thank you

    Manish

    The question that you are running is the WebWorks SDK provided with the library net_rim_api.jar for BB5.  This means that the BB6 API are not in this library link to.

    We are looking to add a new net_rim_api.jar to the SDK so that people can take advantage of the API of BB6.  However, do not know if you are using a BB6 API your app does not work on BB5.  When the application starts, it will get a link error because the API expected is not present.

    You can make your extension work on BB6 by downloading the Java SDK and copy the net_rim_api.jar file and place it in your SDK WebWorks... I believe in the SDK WebWorks is in your directory "lib".

Maybe you are looking for

  • FlipOut covers in the bike store

    If you are looking for a new color to the back of your flipout, the motorcycle shop now has: http://www.store.Motorola.com/battery-door-FlipOut-brilliant-blue/DP/B003ZVQE9W?ie=UTF8&ID=battery%2...

  • CPU limitation with the new power supply

    Hello I have a W510 with 135W POWER supply. Or to be more precise: A 6.75 @ 20V. I work at two locations, so I bought a generic 150W PSU with an adapter to mount the Thinkpad. The PSU is labeled 7. 5A @ 20V, so there should be no problems running the

  • Sirens!

    Today connected to the sound of a siren going! PC is fine, but he's trying to tell me something?

  • setText do not stick

    When I setText on a BasicEditField using: amountField.setText (new String (Double.toString (amount))) It does not stick, because after I use: Double.parseDouble (amountField.getText (), I get a Null pointer Exception. Any ideas? public class AutoCalc

  • VLAN on R180W to separate networks

    Hello I have a network set up between two buildings.  Each building has its own internet connection and a DHCP server, build one using a RV180W router and building B using a linksys product.  A WDS Bridge has been implemented between the two building