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.

Tags: BlackBerry Developers

Similar Questions

  • Difference between APIs / SDKs and their purpose

    Hello!

    I have a running vSphere environment and I am a beginner with the vSphere APIs and SDKs in c#. So I started reading with getting started with vSphere SDK - Update for 4.1 SDK release and downloaded the SDK and API packages.

    First of all, I got PowerCLI with vSphere SDK for .NET and read the vSphere SDK for .NET Developer's guide. Then, I downloaded the package vSphere web services SDK, samples and DLLs compiled and am reading in the programming guide.

    But the bird's-eye view that API/SDK is best for what and how to use it is still missing.

    Do I have reason to assume, as vSphere SDK both vSphere Web Services SDK depend on vSphere API that is available on each ESX host?

    I found the vSphere API reference , but it seems to me that Web Services SDK and vSphere SDK samples, using the same objects and vSphere API methods directly.

    The only difference I found is, that examples of web services use AppUtil who still uses the vSphere API but vSphere SDK isn't. Is - this right and where is the advantage by using one of the software development instead of vSphere API kits? When using web services SDK, can I use the AppUtil of samples?

    So you see, I'm a bit confused by the possibilities and usage. In particular the difference between vSphere SDK and vSphere Web Services SDK is not clear for me.

    Can you help me by summarizing briefly the differences and the objectives of these packages? Or is it a good document which deals with this subject?

    Thanks and greetings

    Patrick

    Hello

    You are right in saying that the vSphere SDK and vSphere Web Services SDK depend on vSphere API.

    Just to clear your confusion, both vSphere SDK and vSphere Web Services SDK are logically the same, there is no difference between them.

    vSphere SDK using Web Services as the underlying technology/channel to manage any virtual infrastructure. This management is achieved using vSphere API, formerly called VI APIs, which are exposed as web services, that run on each ESX system.

    For a better understanding of vSphere Web Services SDK, see the file Readme html doc comes with the SDK package.

    I hope that this will help to clear your confusion!

    Thank you.

    Angela

  • Difference between WebWorks plugin and widget sdk?

    I used only to BlackBerry JDE and am about to move to Eclipse. I understand that I can write in HTML & JavaScript, then compile them in .cod.

    I read that I must have the WebWorks installed in the Eclipse IDE plugin (and I can install the IDE with WebWorks already included). Can someone tell me, what is the purpose of the Widget SDK? Can I plugin WebWorks BOTH the Widget SDK to compile HTML and the hardware API library sources?

    Thank you.

    roricka

    Before I update my ide, let me ask you - originally, I started with the download on

    http://us.BlackBerry.com/developers/browserdev/devtoolsdownloads.jsp

    which consisted of the the BlackBerry WebWorks v. 2.5.1 plug-in OVER Eclipse IDE.

     

    So I can assume I already have the latest and greatest (the reason I ask is that it looked like the upgrade an existing installation of Eclipse with the plugin seems much more complex than to install both together)?

    Yes, you have the latest and best.  I recommend always download and use the full installation programs and not the update site.  Update website brings all sorts of complications.  We started to remove the update site support on a full installation on our Java tools just for this reason.  It represents 90% of our assistance to the installation.  So yes, please use the complete installation programs.

    A big problem - does not install the file files .alx with BlackBerry Desktop Software. No idea why that might be. I get an entry, and it says waiting for install, but when I click on apply ends upwards with nothing in the 'Status' column and the plus sign under the Action, which does nothing. Help!

    In order to install an application on the device, it must also be signed with BlackBerry code signing keys.  Have you purchased your code signing keys and signed your application?

    In addition,-get a simulator for my Curve 8310?

    You can download simulators for all models of BlackBerry.  However, the 8310 curve does not support the OS 5.0 which is required for applications BlackBerry WebWorks.  Simulators can be downloaded here: http://us.blackberry.com/developers/resources/simulators.jsp

    And why the initial compilation step so slooowly. It takes a few minutes for this simple PIN alert program. Is this typical?

    By the initial compilation, do you mean compilation and the launch of the Simulator or actual compilation.  On most machines, I noticed the build takes about 10 to 15 seconds.

    PS. for some reason, I sometimes can't play youtube videos. (Since they work sometimes, I tell myself that I have flash 10 installed ok.) But, is there not a DOCUMENT (as opposed to a video) which gives the same instructions as the video, including the source code for this simple application lists? Seems like that would be a no-brainer and would help out a little.

    I'm not sure of a specific tutorial of the Eclipse, but we step by step tutorials included with the sample applications for various different features:

    http://supportforums.BlackBerry.com/T5/Web-development/tkb-p/browser_dev%40tkb#/?sort_by=-topicPubli...

    There are other resources for learning here as well:

    http://us.BlackBerry.com/developers/browserdev/learningresources.jsp

    There are also a bunch of specific documents WebWorks here:

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

    As well as Eclipse specific documentation here:

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

  • Webworks projects and several versions of blackberry

    Hello html5 developers webworks

    I created a test project helloworld webworks using the latest sdk webworks. Now I have problems loading on the playbook Simulator .bar file, but using the dev alpha 10 Simulator it is no problem at all.

    My question: I am webworks projects worked on all blackberry devices? What I have to have all versions of the sdk and build each project separately or is this something that will resolve itself once I have signed my projects and download them on the blackberry appworld?

    Also, I have to use the command line to build my projects.

    You are right. App World, you create a product that can have several versions. For each new version, you can download another file BAR and specify exactly which versions of OS/device/carrier you want to target with this version.

  • How to explicitly sign .cod file and jad file available in the blackberry phonegap application OTAInstall folder.

    Hi all
    I developed a blackberry software, phonegap will OTAInstall folder that contains unsigned .cod and jad files, I want to give to this folder to the client so that it can make the .cod signature of the OTAInstall folder and install it in their device.

    Note- Customer don't want .cod signature on my side and I can't share my code for the client, I can only share files .cod unsigned file OTAInstall to them.

    Thank you all

    Hi there, when you build with the SDK WebWorks, if you omit the parameter g then the application must be created without his signature.

    Once you share the unsigned cod, the customer must have their own WebWorks SDK installed, as well as of the signature code may operate the SignatureTool.jar in the folder bin to sign actually unsigned cod files and keys.

  • Widget SDK Vs WebWorks SDK

    Hello

    a couple of months back... in the previous year on BBerry Version 5 he spoke Widget Web development.

    SDK WebWorks today is on the horizon for the tablet. I hear you can use SDK WebWorks on SmartPhones with version 6 also?

    So what is the future of the development of Widget?

    Also, in WebWorks they take advantage of the Adobe AIR APIs. This average WebWorks SDK Apps don't use objects Java (extensions) as Widgets? I know there is a JavaScrpt extension library... but the contributions it allows extension to custom Java objects / native also?

    Am totally confused!

    Please provide details

    Thank you

    When I mentioned that it is simply a new brand image, I was referring to the name of 'Widgets' vs 'WebWorks '... We re-branded the name of the platform because we wanted to move away from the notion of 'Widget' and give the technology its own name as a real platform option.

    WebWorks Widgets and Widgets is WebWorks

    We have now expanded WebWorks/Widgets for the PlayBook.  WebWorks/Widgets is an abstraction layer on top of the underlying system functionality to allow developers to create applications in the Web technologies without having to think about the underlying implementation of the platform.

    On a BlackBerry smartphone, the only underlying development platform is Java.

    On a BlackBerry PlayBook, the only current underlying development platform is AIR

    In order to provide the WebWorks abstraction on top of these two platforms, we needed to implement the underlying plumbing to technology that is supported on the target platform.

    Then of course the task to go under the sheets and extension of the framework WebWorks itself requires different technologies that can be shared due to the supported raw underlying development platform.

    Maintaining two code lines separate in order to provide the same functionality is definitely not desired, but this is what is currently required to provide an abstraction layer so that web developers can pass between the Smartphone and the tablet.

    As I've mentioned above, there are more options underlying platform who come for the PlayBook.  As you can imagine, our development team would like to solidify on a single code base, to proceed in the future.  How this will all play will be in time.  There are several strategic reasons, why we can't go on this right now in detail that unfortunately doesn't give you many answers.

    I hope that specific things

  • WebWorks sdk 2.0 can only create projects in c:?

    When I try to create a project in e:

    He invites:

    E:\dev\webworks>webworks create splashtest
    
    fs.js:642
      return binding.mkdir(pathModule._makeLong(path),
                     ^
    Error: ENOENT, no such file or directory 'E:\Users\Merrick\.cordova'
        at Object.fs.mkdirSync (fs.js:642:18)
        at Object._self.getCordovaDir (C:\Program Files\BlackBerry\BB10 WebWorks SDK
     2.0.0.54\webworks-cli\lib\utils\utils.js:36:16)
        at Object._self.fetchBlackBerry (C:\Program Files\BlackBerry\BB10 WebWorks S
    DK 2.0.0.54\webworks-cli\lib\utils\utils.js:55:40)
        at new CLI (C:\Program Files\BlackBerry\BB10 WebWorks SDK 2.0.0.54\webworks-
    cli\lib\cli.js:48:19)
        at Object. (C:\Program Files\BlackBerry\BB10 WebWorks SDK 2.0.0.5
    4\webworks-cli\bin\webworks:4:16)
        at Module._compile (module.js:456:26)
        at Object.Module._extensions..js (module.js:474:10)
        at Module.load (module.js:356:32)
        at Function.Module._load (module.js:312:12)
        at Function.Module.runMain (module.js:497:10)
    

    that should be fixed.

    Hello

    Thanks for the bug report. This one has already been set for the Gold release.

    It is possible to correct your installation by editing webworks-cli/lib/utils/utils.js

        findHomePath : function () {
            return process.env[(process.platform === 'win32') ? 'USERPROFILE' : 'HOME'];
        },
    
  • Cannot run or debug app on the device after the update Momentics 2.1 and api level to 10.3

    Dear Blackberry support

    I have improved my Momentics IDE to 2.1 and api level to 10.3

    After upgrade I can not run my application package, and when I run the Momentics show pop up error:

    Click here to see the photo of the error

    I don't know what is happen?

    Please help me solve this problem, any help is appreciated!

    Thank you

    Hey,.

    Finally, I found the solution for this problem

    Create new project of Blackberry (just create an empty project) and then copy all the CBC, assets of the old project to the new project, also the bar - description.xml and .pro file

    And now everything is ok.

    Thank you for all your help

  • What is the difference between native SDK and Cascades/qt?

    Hi all

    Can someone tell me what is the difference between native SDK and Cascades/QT?

    When I need to go to NativeSDK and when I go to waterfalls?

    These two works in BB 10 or only Tablet?

    Please delete me, I can't live without knowing this.

    Thanks in advance.

    Hi Smiley,

    Yes, you need to install the two NDKs. They coexist and separate IDEs and install files.

    See you soon

    Swann

  • Read and create files in file system

    Hello world

    What is the code that allows me to read and write files in the file system? I use an iOS Simulator...

    I'm using FileOutputStream fos = new FileOutputStream (file); but it is lifted upward an IOException saying: no such file or directory (access denied).

    What I am doing wrong? Do I have to use a SQLite database to store a file?

    Thank you

    Best regards

    Will be.

    Refer

    Application container API - 11 g Release 2 (11.1.2.4.0)

  • Services and APIs

    Can someone explain to me the difference between services and APIs?

    938000 wrote:
    Valad thanks for explaining in a very simple way.

    I understood the difference between the API and the Service.

    As I understand it. API come in the JAR and DLL files has classes to implement a feature. So I use the methods / functions available in for the results desired. But when we use all we need to know is what I send to a service and what outgoing I will get. The service (implementation) in turn can use the API to do the job. Service are defined at a very abstract level. API is also dependent on technology. I can't use java API to dot net program. Where as a service is implemented independent.

    Perfect.

    >

    But when I see the service from a point of view of a developer. How I will write to the service. I know the service description is written in WSDL. But if the service interface are implemented independent, then they must be standard, so the language in which they are written.

    Standards are documented by the W3C, many languages that implement the standards. At a foundation level "language that everyone needs to understand XML, on top of XML, you have a lot of defined standards, XPath, XSL, SOAP, etc...
    http://www.w3.org/standards/webofservices/

    See you soon,.
    Vlad

  • Reappear obsolete api files

    We use interlaced autonomy FileSite 8.5 and having a problem with a file of api obsolete reappear. Every time we update/repair Acrobat, an old (dated 2007-11-30) api file will appear in C:\Program Files (x 86) \adobe\Acrobat 9.0\Acrobat\plug_ins. Correct (15/06/2012) api file remains in the folder plug_ins\Interwoven, but the file exceeded imanacrobat.api also appears. With this api file out of date we cause problems with registration of PDF documents. If we manually remove the file api 2007 all works well until the next update of Acrobat, and then it comes back again.

    I opened a case of pension with autonomy, and they are convinced that their software is not the problem. I tested a repair when the computer is disconnected from the environment of the area by disabling the network card so that I could make sure that he was not getting the file of our network somewhere. Imanacrobat.api file returns. Using Procmon while repairing and looking at the re-creation of the file produces no pointer know whence this file. The search of the local registry does not find everything related to the api except for the pointer to the right thing.       Anyone has any ideas as to why the api files keep reappearing or how can I get rid of the problem?

    The nested API file, is not part of Adobe Acrobat.  If the Acrobat installer should not affect third party plugin which uses a different Setup program.  It seems that you or your IT Department may have packed the file API interwoven with Acrobat.  Now normally when Acrobat repairs or updates he follows the specification of Windows Installer technology and reference the MST file in the process and use it to keep all the customizations that you made originally for the MST and MSI file, as a package.  The question is "How do you change the Acrobat installer?  He was with the Adobe Customization Wizard?  He was with a third-party installation utility?

  • Why finder hide Documents and office files in the home directory of the user by activating iCloud drive? What about the behavior of Time Machine backup or third-party applications?

    I'm under MacOS Sierra. I am connected to my iCloud account. I activated the option Desktop and Documents, but I did NOT activate the option optimize Mac storage, because I wanted to make sure that all my files would be available locally, just in case, I would need to work without an internet connection.

    -J' noticed there now a menu iCloud in my sidebar in the Finder, with links to Documents and desktop.

    -J' also noticed that Documents is no longer presented in my favorites in my side bar of the Finder.

    -This last suggests that files saved in 'Documents' are not saved more on my HD... but only in iCloud, which isn't what I want.

    -Then, sailing in the Finder Macintosh HD/users / 'My account' /, I noticed that my Documents and desktop folders are more visible, as if these files are not saved in my home folder most. Which raises the question: where are My Documents and files on my HD, so they are still?

    -Using a shell session in the terminal and again navigate to/Users / 'My account' /, I noticed that my Documents and desktop folders are still there. Which suggest that records and records of office reside actually still in my home folder under users, but Finder actually hide it and present them as being stored in iCloud only disc. It's very confusing.

    This raises several questions:

    -In the first place, why Apple hide Documents and office files in the directory? Why not view these folders in iCloud and directory?

    -Whence the iCloud folder or drive, reside actually on my hard drive?

    -What time Machine. Is it still back up my document files and folders?

    -What games third-party app mirroring backup of My Documents files and folders? They still work properly? (I use Livedrive backup and Sugarsync for files mirrored across several macs).

    -How can I understand that Apple is doing with my folders and files? Some users might be happy with the iCloud drive concept, without worrying about how it works, but I don't take chances, and I want to keep a good understanding about the functioning of my system.

    Could someone explain what is exactly happening?

    With office and selected Documents, access to these files are now in the iCloud Drive, not in your home folder.

    My guess would be that they do not appear in your file because it would be confusing for many people to make them in two places.

    If you want in the Favorites, open iCloud Drive and drag them in the sidebar here.

    All about iCloud drive has been saved on your Mac. With the exception of the office and the Documents, they are in ~/Library/Mobile Documents. However, if you choose optimized storage, older documents are removed from your Mac. I don't know what is "old".

    ~/Documents and ~/desktop have new metadata indicating probably Finder does not display them in a Finder window, only in iCloud drive. They are not hidden in one of the normal methods of unix.

    I have not tested Time Machine or any other backup program. The folder still exist in your directory home, and they still have all the files, I don't think that changes anything.

  • differences in the use of a backup Favorites file ".json" and a file of bookmarks '.html '.

    Hi all
    What is the difference between the use of a backup Favorites file ".json" and a file of bookmarks ".html"? It seems that both of them do the same job. If this is the case, then why there are two options (.json and .html) to do the same job? If this isn't the case, then what is the reason for the availability of the two options and how are they different? Although I read the material, it didn't quite clear form me again. Please be so kind enough to elaborate on the question so that I can get a clear understanding of their good use (s).
    Thank you very much in advance for your time and skills

    Hello

    See questions/684284

  • How can I change where messages and temporary files are stored?

    How can I change where the profiles messages and temporary files are stored on the disk. because I'm using an SSD for the OS (Matt Mint17) and program files. I oorder to extend the life of the SSD I want to store these files on a different HARD drive. Thank you Ari jowett

    http://KB.mozillazine.org/Moving_your_profile_folder

Maybe you are looking for

  • built in Viewer does not

    I was looking at a PDF in the viewer built for months... Since yesterday, it asks me to download the pdfI tried everything I can find online, I have all of the options display in the built in acrobat alone Viewer or firefoxhave you stopped to support

  • IClound update on Windows 7. When I try to login to iCloud, I get an authentication error.

    I have ipdated iClound and can connect via a browser. But when I try to connect to the iCloud app I get an authentication error. I already tried to uninstall iClound and reinstall it again. Any other ideas? XR. Robert *. < personal information under

  • I am running windows 7 and zone alarm and cannot download the new update of firefox whice is 7-0-1

    I got message saying there was an update for 7 0 1 firefox but I download the update, but it will not install I also lost more than firefox, as I said I am running windows 7 32 bit and zone alarm on the pc zone alarm came that the download was not st

  • WiFi adapter does not work

    adapter WiFi shows no available networks. I tried the system restore, but it did not work. I tried updates and that didn't work either. the adapter is ralink rt5390.This is a link to my features to laptopshttp://support.HP.com/us-en/document/c0313624

  • HP ENVY 15-U010DX BIOS RESET PASSWORD

    I forgot the password BIOS HP ENVY 15-U010DX.  After several attempts, I have the following message: System disabled: 51380224 Can someone please?