Magnetometer WebWorks API?

Where can I find the magnetometer Playbook WebWorks API? Thank you.

Unfortunately, there is not yet.

Tags: BlackBerry Developers

Similar Questions

  • 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

  • Record 2 channels audio WebWorks API?

    Reference on the WebWorks API indicates that the recording from microphones is possible on a single channel. However, the application of voice Notes record clearly on two channels, as can be easily shown by moving the Playbook from left to right while he was recording his own voice. Where can I find the API WebWorks for 2-channel audio, record from the MICS Playbook? Thank you.

    It is currently not possible.  I have added your request to github issues as an improvement to the feature list:

    https://github.com/BlackBerry/WebWorks-TabletOS/issues/54

  • Configuration PlayBook WebWorks API extension support

    Hello

    I would like to know if there is a way to package an extension API with an application. The default extensions are located in the bbwp/ext folder. I have a custom extension that I include in my application. I was able to compile the application with my custom extension copied to this location mentioned. My question is should I add the extension custom in my application package? If so how that happen. All to follow folder structure? Please help me.

    Thank you

    Praveen

    Well it would not be considered "tampering" with the SDK package

    It is in fact our approach for each of these directories with... There is no way to incorporate your extension as a resource in your file to archive WebWorks.

  • Rotation / orientation/tilt of the PlayBook WebWorks API?

    Where can I find the API WebWorks for rotation / orientation/tilt? In other words, how can I detect programmatically the rotation of my Playbook on the three axes? Applications such as "What's up?" clearly use such an API. Thank you.

    So you're looking for the DeviceMotion API for motion capture (x, y, z).

    Here's a demo:

    http://BlackBerry.github.com/WebWorks-samples/kitchenSink/HTML/browser/motion.html

    Otherwise, if you are looking for portrait/landscape orientation, you can use the window.onorientationchange event:

    http://BlackBerry.github.com/WebWorks-samples/kitchenSink/HTML/browser/orientation.html

  • WebWorks API payment issue; persistence/identification of the purchase.

    I have a question for anyone who is familiar with the payment API WebWorks.

    In an application, I did pretty well, I intend to have a content purchasable electrode.

    I put everything in place so that if make you a purchase, a value of localStorage is created. The function to launch the content purchased checks if the value of localStorage exists, and if it isn't the user is directed to the premium 'content' section. If it helps, here's the code:

      function getPremium() {
        try{
          blackberry.payment.purchase({
          "digitalGoodID":"myGoodID",
          "digitalGoodSKU":"myGoodSKU",
          "digitalGoodName":"Digital Good",
          "metaData":"metadata",
          "purchaseAppName":"App Name",
          "purchaseAppIcon":null},
          success,failure);
       }catch (e){
         alert ("Error" + e);
       }
     }
    
     function success(purchase) {
       localStorage.setItem('premiumpurchased','yes');
     }
    
     function failure(errorText, errorId) {
       alert("Error occured: " + errorText + ", " + errorId);
     }
    
    //Function called to check if premium content was purchased
     function checkPremium() {
    if (localStorage.getItem('premiumpurchased') == 'yes') {
    bb.pushScreen('premium/index.html','premium');}
    else {getPremium();}
    }
    

    Now, if the user of the application content purchases and then deletes the app, the localStorage is removed.

    If they attempt to make a purchase once again, I think I know that they will have (because it is the electrode), which is what I want to do (in other words, I don't want people to be charged twice).

    But in this case, how the app would re-create the localStorage value so that premium content are accessible? Or y at - it one another, better way other than creating a value of localStorage for this?

    I read http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Sample-App-BlackBerry-WebWorks-P... and https://developer.blackberry.com/html5/apis/blackberry.payment.html and couldn't find an answer on the part of the people.

    Thanks in advance to anyone who can help you.

    Little late, but I can confirm that the above code works.

  • How do we get the device phone number using webworks api 2.0

    I could see an example of code to get the phone number of javascript which is not supported for BB10.  The code below does not work for BB10? If so, what is one alternative to the native extension.

    
    

    Hi beats,

    It is currently not possible. The only way you could get the phone number in this moment is to create a native extension that accesses the 'phone' / 'Line' API here http://developer.blackberry.com/native/reference/cascades/bb__system__phone__line.html?f=line#functi...

  • WeBWorK API operation.

    Filming services works not in webworks, anyone know if it's on the roadmap, to make it compatible?

    http://developer.BlackBerry.com/HTML5/downloads/roadmap/

    Apparently not

  • V2.1.0 WebWorks SDK and API file

    Hello

    First of all thanks for the update with the new APIs. I need a clarification on the queue API. The link to the API file for playbook below shows some examples. http://www.BlackBerry.com/developers/docs/WebWorks/API/BlackBerry.IO.file.html

    It is an example used in the same page to write to an xml file.

    var blob_data = blackberry.utils.documentToBlob(doc);
    

    But I could not find this support for extension under utils to http://www.blackberry.com/developers/docs/webworks/api/blackberry.utils.html. I guess that is not enabled for Playbook at the moment. So, how to create a file using the API leader Playbook.

    Yes, the implementation of the saveFile() and readFile() are there under the covers.  The problem is that all you can do is read a file, and then réécrirait.  Essentially a copy().

    One main engines around reading/recording functions are to read and manipulate the data to read by being able to do the blobToString() which is not yet supported on PlayBook and save via stringToBlob() which also is not yet supported.

    Since these are the main use of the scenarios to save/read, this is the reasoning why we approach these methods as not supported on the PlayBook.

  • 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

  • WebWorks for Playbook and using photo APIs

    Hello

    The API documentation, I found that the camera what API can be used to call the camera from an application. Thus, it can be used to capture an image that will then save the image in a folder of the playbook? If Yes, how can I know the name of the file that is the last one added to the camera file in the shared location? Please help me with this.

    Thanking you in advance,

    Praveen

    garciaf wrote:

    Is there a way to get the photo you take with the camera.

    You must use the Phonegap Framework http://www.phonegap.com/

    They provide a specific function that represent you to get the URI of the file or data directly.

    (But if you get the data directly there is a problem of memory)

    Another way is to encode your own API in Java and add in the web works. (If you choose this solution and the success you, I would be very interested in the result)

    Concerning

    Hi garciaf,

    You are right that PhoneGap has this API for smartphones, but they have not yet supported for Tablet OS.  And on Tablet OS, you can't create an extension using Java, because it is not a Java virtual machine.  You must create an extension with ActionScript

    The takePicture() API becomes even closer now to PlayBook and smartphone.  You can see what the API signature will look like in the jsdocs found here:

    https://github.com/BlackBerry/WebWorks-API-docs/BLOB/Delta/API/blackberry_media_camera.js

    It will be the signature of the API used for both BONES of tablet in the 'Delta' version and the Smartphone 'Epsilon' version:

    https://github.com/BlackBerry/WebWorks/Wiki/Roadmap

  • Web Application vs Webworks for performance

    I plan to move from a Java based OS5 native application by using browserfield2 to a mobile Web site that runs in the native browser.

    I have several examples of mobile websites which have much higher speeds than I was able to achieve using the Java application.

    If I want to have the speed of the mobile site AND still have access to some system resources (possible examples might be local graphics resources, or a cache local or even integration of BBM), WebWorks is a viable solution?

    Q2.  If I adjust to the speed of the only native browser (assuming that the answer to my previous question is not), so in this case, WebWorks is just as good as the native browser when rendering web content.

    Yes, WebWorks was designed precisely for this purpose. It gives you the power of HTML5 mixed with native platform API. There is one thing to consider though. WebWorks APIs are always released later than the native APIs and sometimes they are never published by RIM (but you can connect to the existing native APIs if you can write an extension).

    Regarding the speed of rendering, it is usually as good, but there's an important limitation, you have a limited amount of memory available for your application.

  • How to get started developing applications with Webworks

    Hi all!

    So I have an idea to build an HTML5 app for use by the Office on BES10. Basically it digitizes a 2 page paper form to be used on a device (PlayBook or Android) taking advantage of the function of swipping and scrolling of screen minimizing

    Here are the details:

    (1) the office worker: take Excel data and partially fills a form (or multiple shapes - similar to mail merge) to a specific area coordinator.

    (2) the office worker: push forms pre-filled as a coordinator on a PlayBook application or another html5 client connected to BES10 (private App)

    (3) Coordinator: logs in-App to 'their space '.

    (4) Coordinator: filling out form and supports (or partially fill in form to submit later).

    (5) time stamp is applied to participate "forms" submitted.

    (6) field coordinator: can view their history of completed forms (read-only)

    (7) the office worker: can view, print, save, or extract data from forms.

    How I started with this project? I have to go back and take a class HTML5 then a webworks courses?

    Thanks for your comments.

    Hello

    When you think Webworks is a framework that relies on HTML5, CSS and JavaScript for its applications.

    So if you are looking to develop an application, with a background in HTML5, JavaScript and CSS is certainly recommended and would be the best starting point that I can recommend.

    In your case, it seems that it would also be a bit of work on the backbone (to store data on a server) for which I highly recommend looking in Node.js + Express.js (for the web server) and MySQL for any back-end storage.

    WebWorks which gives you on top of that is a subset of the JavaScript APIs specific BlackBerry that allows you to take advantage of the native features (Toast messages, Push Services, etc.)
    https://developer.BlackBerry.com/HTML5/APIs/v2_1/

    However the structure underlying and functionality is always HTML5, JavaScript and CSS.

    Once your application is HTML5 writes, and you have chosen to use / not use WebWorks APIs, you can then use WebWorks to 'package' for your project of HTML5 in a file that runs on BlackBerry 10 devices.

    The app itself is so standard web technology, with the ability to use native APIs via WebWorks. And WebWorks place it in a container that can be run on a physical device.

    For PlayBook, it's the best starting point:
    https://developer.BlackBerry.com/PlayBook/HTML5/

  • net.rim.blackberry.api.mail.ServiceConfiguration

    I could see ServiceConfiguration class package rim... is there a method/logic equivalent it in cordova/webwork api in webworks 2.0? I need to get the email as

    Session mailSession = Session.getDefaultInstance ();
    ServiceConfiguration config = mailSession.getServiceConfiguration ();
    String email = config.getEmailAddress ();

    Thanks in advance

    Balu

    Hi, Balu, not is not a 'messaging service' plugin still available for WebWorks 2.0 / Cordova.

    You need to write your own plugin wrapping any corresponding native API in a container of JavaScript, similar to what other devs are here: https://github.com/blackberry/WebWorks-Community-APIs/tree/master/BB10-Cordova

  • How to set the background color for the Webworks Menu?

    Hi all

    I have developed a web application that uses the emulator to ripple and Blackberry Webworks SDK 2.3.1.5.In I added the Menu items on the Blackberry Menu button... It works well... It contains the background color by default for Menu (Black)... Here, I want to change the background color of the Menu... Please help me to change the background color... Thank you very much..

    With respect,

    Marimuthu_P

    I don't think that this is possible.  The WebWorks API allows you to add menu items to your application does not provide the ability to change the background color by default of the menu.

    This API is actually an extension of Java built into the SDK WebWorks.  The source code because it's open source, available here: https://github.com/blackberry/WebWorks/tree/master/api/menu/src/main/java/blackberry/ui/menu

    It is based on the Java class "MenuItem", which as you can see it does not provide methods or properties to set the color:

    http://www.BlackBerry.com/developers/docs/7.1.0api/NET/rim/device/API/UI/MenuItem.html

Maybe you are looking for

  • Screen scrolls when in friends with games on facebook

    When friendship with games - scramble - the screen with himself scroll down without my help of the bar to the right of the screen. This happens a few minutes after I opened the screen on the screen of scrabble.THX Greg

  • Is it possible to run an application Windows on my MAC?

    I have a new sewing machine, which connects via wifi to my computer for downloads, etc.  However, the software is only for a PC.  Is there a way I can run on my iMac?

  • iPhone 4 lights only if hooked up to the charger

    Hi all. I've been browsing the discussions here and although I've seen some similar to my problem, none of them specifically do the trick, so I'm going: Friday, before I left to go to a friend for Christmas, I was using my iPhone, no problem. As soon

  • Cannot access the Microsoft Update Site

    I get the following error message when you try to access the update site: Microsoft Update could not be installed on your computer Make sure that you log on as an administrator or as a member of the Administrators group, and then try again. More trou

  • 0x000000ED

    When I reboot, I get a blue screen with this error message that says UNMOUNTABLE_BOOT_VOLUME.  The same thing is happening in the security mode.  I can't access the Recovery Console to run chkdsk / r command.  Is it possible to run chkdsk / r command