Examples of Webworks Tablet API

IM the difficulty in identifying the means to get the API functions to work in my Tablet Simulator.

Ive inserted, the label features in the xml file.

Config.Xml


http://www.w3.org/ns/widgets" xmlns:rim="http://www.blackberry.com/ns/widgets" version="1.0.3" rim:header="RIM-Widget:rim/widget">
  CloseMe
  Browser Renderer for Blackberry Playbook.
  n/a
  
  
  
  
  
  

And have included the script directly from the API in my code.

index.htm



    
    
     Close Me 
    
    






Ive also tried to put some blackberry.app.exit ();

but it does not work either

Who am I lack/hurt?

Thanks in advance,

Lyth

You missed the tag. Here's the code to work:



    
    
     Close Me 
    
    







Tags: BlackBerry Developers

Similar Questions

  • BB10 Webworks camera API?

    I was updated an application and found that the HTML5 WebWorks camera API (for example, "blackberry.media.camera.takePicture") is not usable for BB10.

    I dug through the poriton BB10 and did not find any direct appeal was once used.  Y at - it another option to use the camera in a webworks HTML5 app?  any sample taken in charge?

    Thanks in advance!

    In BB10, is in the stuff of Invoke

  • Camera Tablet api

    Hello

    I recently started playing with adobe air and the API of camera. While I was able to activate the camera and display the output to the screen, it seems that I can not save the output in a file. I tried to look in this forum and I still didn't find my answer. Someone could point me to an example or instructions on how to code out of the camera and save it in a file in the video folder on the tablet.

    Thank you for your help,

    M.

    You can use the camera with a minimum of code amount using the CameraUI class. There is an example on Adobe blog.

  • Yoga 2 Pro - how to disable notifications from switch mode - for example mode "attempts", "tablet mode", etc.?

    Anyone know how to disable the notifications that appear in the upper right say you that you have just changed from one configuration to another - for example switch from the tent to the Tablet mode?

    It is not enough to uninstall the "Yoga Picks" modern application, you will need to uninstall the office by going to the desktop control panel > programs and features > uninstall a program > Yoga Picks > Uninstall.

  • WebWorks FileReader API differs from Cordova

    This problem just kill my whole day.

    Whether it is short:

    ---------------------------------------------------------------------------------

    Ref: http://developer.blackberry.com/html5/apis/beta/cordova_file_file.md.html#FileReader

    The doc says this FileReader readAsText / readAsDataURL etc. function accepts the parameters of the object file.

    and the sample is:

    function win(file) {
        var reader = new FileReader();
        reader.onloadend = function (evt) {
            console.log("read success");
            console.log(evt.target.result);
        };
        reader.readAsDataURL(file);
    };
    
    var fail = function (error) {
        console.log(error.code);
    };
    
    entry.file(win, fail);
    

    but can anyone work?

    MOM

    After the hours test, I found that on webworks 2.0 beta, fileReader only accepts the FileEntry object. which cannot be disposed of as file.

    Ref: File.slice)

    slice
    
    Return a new File object, for which FileReader returns only the specified portion of the file. Negative values for start or end are measured from the end of the file. Indexes are positioned relative to the current slice.
    

    -----------------------------------------------------------------------------------------

    Test code:

    URL that can be read by invoking picker.like file: /accounts/1000/shared/test.txt

    blackberry.io.sandbox = false;
    window.requestFileSystem(window.PERSISTENT, 0, function(fileSystem) {
        futils.fs.root.getFile(URL, null, function(fileEntry) {
            var reader = new FileReader();
            reader.onloadend = function(evt) {
                console.log("read success");
                console.log(this.result);
            };
            reader.onerror = function(e) {
                console.log('error ' + e);
            };
            reader.readAsText(fileEntry);
        }, function(e) {
            console.log(e);
        });
    }, function(f) {
        console.log(f);
    });
    

    This code can read the contents of the file. Why?

    what it should be is so obtained fileEntry, use fileEntry.file () to get a file, cut the file, read the file into slices.

    Fix this A.S.A.P.

    Hello

    Thanks for reporting this! You are absolutely correct that FileReader and FileWriter should accept objects files.

    It is actually a bug in the plugin file Cordova itself. For the SDK WebWorks, we import the plugin and documentation of Apache.

    I opened a session in this case for the follow-up. Someone here will attempt from inside.

    https://issues.Apache.org/jira/browse/CB-6013

  • Unzip the API in WebWorks-community-API

    Followed the directions except point 3 where it says "compass." Changed to "decompress."

    1. Cloning the repo on your local machine
    2. Locate your BlackBerry WebWorks SDK WebWorks SDK, 10 research in Motion\BlackBerry C:\Program \Framework\ext (Windows) or ~/SDKs/BlackBerry SDK WebWorks/framework/ext 10 (Mac)
    3. Create a new directory community.compass in the ext directory
    4. Copy output/community.unzip/unzipJnext.so to /path/to/sdk/ext/community.unzip/device/unzipJnext.so
    5. Copy the text in javascript_src to /path/to/sdk/ext/community.unzip

    so my 'ext' folder contains a "community.unzip" folder, and this folder contains:

    • client.js
    • index.js
    • Manifest.JSON
    • and a "peripheral" folder containing unzipJnext.so

    my config.xml file contains

    in high triple checked

    referring to community.unzip.unzipPackage

    gives the message "community.unzip is not defined.

    And a question. The example of index file has this statement

    What? Why?  He receive another message on this one "failed to load the resource.

    Hello

    You are right.  The extension only works in an application packages.  Not waving.

  • Use a browser to debug applications Webworks Tablet

    Hello

    I'm working on an existing playbook application developed by a former colleague. He told me that he used the Chrome tools to debug the application when running in the VMPlayer.

    I got the VMPlayer functioning and can see the IP address but can't access anything whatsoever in the browser.

    Any help very appeciated.

    Thank you.

    Read more about it here and let me know if it is not clear
    http://www.BerryReview.com/2011/04/15/hot-WebKit-Web-Inspector-on-the-BlackBerry-PlayBook-for-Web-de...

  • Error during construction through ripple for Blackberry Playbook, with WebWorks-Tablet

    Hello

    I am currently working on a blackberry app coded in HTML5.

    I am looking to build for the playbook, following the instructions

    https://developer.BlackBerry.com/HTML5/documentation/creating_helloworld_for_blackberry_playbook.htm...

    However, when building it, I get the following error message

    The first error message is caused by error when loading "jvm.dll" However, I checked, and this file exist in this directory.

    Any help or sugestion would be greatly appreciated!

    Thank you.

    You must use JDK 6, and it must be 32-bit. I use the 32-bit JDK 6u45.

  • Problems when creating extension using pim contact webworks API

    Hello

    I need to create an extension that use webworks APIs to get all contact data as well as launch the contact selector and must obtain the name of the contact, numbers and Base 64 of contact image chain.

    Now, I have a few quesries below:

    1. I tried to reach my api requirement with webworks. For this, I did changes in the config.xml file.



    <>ermissions >
    <>Ermit > access_pimdomain_contactsermit >
    ermissions >

    and able to access the API of pim.contact placed here: C:\Program Research In Motion\BlackBerry 10 WebWorks SDK 1.0.4.11\Framework\ext\pim.contacts

    But when I tried to get all contacts by using the getContactAccounts() method, it gives me two accounts simcontacts and LocalContacts and their identity papers are respectively 2 and 19.

    I found that I can get the list of contacts using the example of the contacts. but this is to limit the length to 20.

    http://supportforums.BlackBerry.com/T5/Web-and-WebWorks-development/need-help-with-BB10-WebWorks-con...

    2.i have not found any documentaion appropriate for the fields of my contact: name, numbers and Base 64 of contact image chain like the way they gave in the native SDK documentation.

    Please share any code example that is in all fields of contact data of Singla retrieving.

    3. I need to share my contact plugin and need to expose certain methods of my plugin webworks.

    How can I reach it?

    Is it possible to get the code side native for pim.contact plugin, so that I can add methods more in it and can expose these methods more Web app works by making the required in index.js and client.js chnages.

    Help, please.

    I checked and there seems to be a problem with the API that has been fixed for version Gold SDK. Here you can find a similar position:
    http://supportforums.BlackBerry.com/T5/Web-and-WebWorks-development/need-help-with-BB10-WebWorks-con...

    And more information on the real fix here:
    https://github.com/BlackBerry/Cordova-BlackBerry-plugins/pull/80

    It seems that it was default 0, which gave 20 results, as opposed to-1, the expected default value.

    For now, if you simply pass a high value for limit, which should get the contacts (i.e. 1000). I know that's not ideal, but a workaround for now.

    For plugins, the best starting point would be the following.

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

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

  • Is there an API for developing WebWorks Playbook file picker?

    I'm looking for a way to ask the user to navigate to a file and then access the file in javascript. I found there is something for BlackBerry smartphone, https://github.com/blackberry/WebWorks-Community-APIs/tree/master/Smartphone/FilePicker. For the same reasons, I can not use the input type HTML field 'file '.

    Is there an equivalent for Playbook?

    Hi asiayeah,.

    Unfortunately it doesn't seem to be something similar to this extension in space Tablet currently. Seems that you need your own custom control (WebWorks APIs leverage) or extension (to dig down in the AIR or AIR > native) for this right now.

    Erik Oros

    BlackBerry Development Advisor

  • VBAI 2013 API c# code example

    I try to use a new model player NOR SmartCAM VBAI 2013 - previously we have used VBAI 2009 API - and connect, inspect, and achieve results (specifically ID matrix read and pass the status).

    The c# code sample uses VBAIEngine object.  Not clear how to connect to the camera.  An example that I can operate with the camera would help enormously.

    I'm sorry. There is no chm or online documentation for the API .NET VBAI. We currently provide some examples.

    The API is relatively easy to use, and the examples provided with VBAI show how to use most of the functions.

    For the complete list of functions and their prototype, double-click the NationalInstruments.VBAI.200x reference in the sample project, to see the Assembly in Object Explorer.

    From there on, tyou can extend NationalInstruments.VBAI, click on VBAIEngine and see the list of all methods and their prototypes in the window.

    Same for NationalInstruments.VBAI.Enums and NationalInstruments.VBAI.Structures.

    Sorry I don't have a better answer for now. If you have questions about some of the methods, feel free to post again on the forum.

    Best regards

    Christophe

  • BB10 Barcode API for WebWorks

    Hey guys,.

    Here's my problem:

    I want to read a 1 D bar code (EAN - 13) and achieved his feat on the playbook with one of the webworks community API, unfortunately there are none for BB10 right now and I don't have the skills to do it myself with the NDK.

    Maybe someone of you had done this before and can share its solution with me and the community, or has an idea what he wants to share with me how to solve this problem. Any help is really really really appreciated.

    See you soon,.

    Christian

    There is now a plugin official webworks on github that provides the desired functionality.

  • Tablet - Question API

    Hello

    because I'm not too familiar with the BlackBerry Tablet API or the Adobe AIR APIs, I have two questions on whether or not it is possible:

    1. can I configure VPN appliance settings programmatically?

    2. can I lock or wipe the BlackBerry Playbook by programming?

    Thanks for all the answers!

    I personally haven't seen a demo where the person can lock the screen.  He could be here, I've just not seen it.

    With regard to wiping.  If there is a Java API for that, then perhaps it would be possible in a future API.  I'm just surprised that such an API is on the side of the phone.

  • Instantis API example

    I want to use the Instantis API but the documentation is very poor.  The RFSO indicates API is called via a web service, but the entire document specifies is a URL.  When I previously used web services, web service interface is documented by a WSDL.  Is there a WSDL that documents the web service interface that you can send me?  Or can you give an example for the connection API?  I think if I can get enough information to make a single API I can understand the rest of the API.

    Instantis APIs do not have a WSDL file. The documentation has the information required to make web service calls. As a starting point you can use the syntax of appeal mentioned in the guide in your browser to examine the output

    Call syntax for connection as indicated in the guide is as below and it works well

    https:///SiteWand/Submission//integration/login?api_name=login&output_type= &user_login_id=

    We used all the APIs in our solution integration with no problems and everything works fine.

    Maybe you can share your comments with Support of Oracle on what you find missing in the document and how it can be improved.

    Kind regards

    Sachin Gupta

  • VCloud 5.1 API c# edge Gateway service detailed configuration examples of code including firewall rules, rules Nat and DHCP.

    Hello world

    Everyone can share codes sample detailed to set firewall rules and NAT for c# rules?  I looked in the examples provided with the API, but I need more samples.

    Here is the example of function to configure the firewall to VCloud API 5.1 for c# rule.

    ///

    To create an object of type of firewall rule. This object is used to configure the firewall.

    ///

    Name of the rule

    Source IP address range

    Firewall Type protocols

    Type of firewall policy

    Source port

    Destiniation Ip address range.

    Destination

    Toggle rule

    Turn logging on or off.

    Firewall rule

    public static FirewallRuleType CreateFirewallRule (string name, string sourceIpRange, FirewallRuleTypeProtocols protocols, FirewallPolicyType action, sourcePort int, string destinationIpRange, int destinationPort, bool isEnabled, bool enableLogging)

    {

    Create an object of type firewall rule.

    FirewallRuleType firewallRuleType = new FirewallRuleType();

    Configure the setting was active user interface check box.

    firewallRuleType.IsEnabled = isEnabled;

    firewallRuleType.IsEnabledSpecified = true;

    Set the description of the rule from the user interface name text box.

    firewallRuleType.Description = name;

    Normally, this is a port number.

    firewallRuleType.SourcePortRange = sourcePort.ToString ();

    firewallRuleType.SourcePortSpecified = true;

    Configure the Protocol

    Protocol of var = new FirewallRuleTypeProtocols();

    Value of the Protocol Set object

    Protocol. Items = new Object() {true};

    Define the name of element

    Protocol. ItemsElementName = new ItemsChoiceType [] {ItemsChoiceType.Tcp};

    Protocol Set

    firewallRuleType.Protocols = Protocol;

    Set the destination IP address range

    firewallRuleType.Item = destinationIpRange;

    Normally this is the port number.

    firewallRuleType.DestinationPortRange = destinationPort.ToString ();

    Set Source Ip range

    firewallRuleType.Item1 = sourceIpRange;

    Configure logging check box UI activate recording.

    firewallRuleType.EnableLogging = enableLogging;

    firewallRuleType.EnableLoggingSpecified = true;

    Configuration by default allow/deny action.

    firewallRuleType.Policy = action. Value();

    Return firewallRuleType;

    }

Maybe you are looking for