TakePicture on the Playbook

Hello

I'm developing an application for the Playbook webworks. I try to open the camera to take a picture. I know it's possible because there is a function takepicture in the api webworks and is available for the Playbook.

My problem is that nothing happens when the function takepicture should open the camera. I get no error message, just nothing. I don't know how I can trace my application is running. Any idea?

I added and<>ermit > use_cameraermit > on my configuration file. I don't know if the order of the two "statements" is important?

Can you help me?  Thank you.

Laurent

Hey thanks this helps a lot. I wasn't aware of this github webworks samples.

I think my mistake is in my file config.xml.

Instead of

Tags: BlackBerry Developers

Similar Questions

  • error on the application running on the playbook

    Hello

    I built an application using phonegap, what I have running on other devices, but I built a .bar file and I get the following error when you try to install the application

    failure of 821 request-requires-system: System name not recognized 'BlackBerry 10'

    Ive been looking for oonline and in some forums but I can't seem to find an answer to this question.

    It seems that the BAR file was built for 10 BlackBerry which is a different architecture than the OS of the PlayBook.

    There is here a guide which describes the process of generation for PlayBook:
    http://docs.PhoneGap.com/en/2.3.0/guide_getting-started_blackberry_index.MD.html

    Specifically, you must use the Tablet OS SDK, not the BlackBerry 10 SDK.

  • To access the PlayBook PIN / UDID

    Hello

    Is it possible to access unique information on the PlayBook, such as his PIN code, via the WebWorks SDK?

    Thank you.

    This feature has been released with the WebWorks SDK for Tablet OS v2.1

    Details of the API here:

    http://www.BlackBerry.com/developers/docs/WebWorks/API/BlackBerry.identity.html

  • What applications will be delivered with the Playbook as default

    I'm hoping to get an understanding as to what apps will be available by default with the Playbook.

    This will help to decide what to build as my first communication of the app.

    Thanks in advance.

    We cannot tell exactly what apps will be available right out of the box, but those I can say will be there (in addition to others) are:

    • Web browser
    • Video player
    • Music player
    • Sync with BB phones
    • Camera captures (photos and film)
    • Manipulation and photo library
    • Some games
    • App World
  • Launch of the URL in the browser of the Playbook

    I must say, this complete package of the Playbook is a fascinating move by RIM. Seems really captured some interest. He certainly got I'm working on my application that I've been a bit lax to watch for a while! Also forced me pick up cocos2d-x in my todo list, as my android app used native code for graphics, so thanks for the help I needed

    In any case, a question which I hit to date can come from my lack of understanding of the Playbook as a device. Is it possible (and it's a workflow accepted) for launching native browser of the Playbook since an application SDK? So if I want to link my dev blog / facebook page / G + page / whatsoever of in app I just wish I could call some URL launches the function. If it's in the docs I apologize, but I look through and cannot see an obvious reference to this type of action.

    Function called navigator_invoke draws bps

    See docs here

    https://bdsc.webapps.BlackBerry.com/native/beta/reference/com.QNX.doc.bps.lib_ref/com.QNX.doc.bps.Li...

  • Porting an existing application from the PlayBook to BB10

    I have a question Portage.  I think I'm ready to download an App from App World.  Please let me know if I missed a step.  Here's what I did with an existing application of the PlayBook - I downloaded and installed the "BlackBerry 10 SDK for Adobe AIR beta 3" in my Flash Builder.  Also, I requested, received and installed the new code signing for the BlackBerry PlayBook OS, BlackBerry 10 and upper keys.  I recompiled the program with the new SDK BB10 and the new code signing keys. The program works well on my PlayBook and in the emulator.  I guess that everything that I have to do now is download the app on App World.  Who is?

    Why the new signing keys? If it's just an another update of an existing application to the PlayBook, you must use the same keys.
    Did you use an icon of 150 x 150 and redo your screens of the new device size slash?
    You resize the goods correctly for the increase of almost 2 x the pixel density?

  • What version of the Android is available on the PlayBook?

    Hello

    What version of the Android is available on the PlayBook?
    Is this the same as BlackBerry 10?

    Thank you

    This is Android 2.3.3 for the PlayBook...

    http://developer.BlackBerry.com/PlayBook/Android/documentation/mastertopic_playbook.html

    and 4.2.2 for BB10...

    http://developer.BlackBerry.com/Android/documentation/gettingstarted.html

  • Test app is in contradiction with the original app in the playbook

    I created an application using webworks for BB10, tried to test on the book of game, installed through BlackBerry Tablet OS chart Help, he worked for another POC, created a new test application using the same file config.xml (that changed the Id and version), after the test I deleted the application of test of the playbook, changed my original, installed in the playbook app , it has installed but... When I click the icon, the old test application open! ??? What could the problem? How to solve?

    Ooops... config.xml: did not...

  • How actionscript / flash apps get compiled for the PlayBook?

    Hello

    When you create a bar file, what exactly? Is my actionscript into native arm assembly using a LLVM as described by Adobe for their implementation of iOS?

    I ask because when I tell people I'm an application using actionscript, they say "Flash?" Why would you use Flash? Adobe gave up on this subject.  I would be like power better understand how actionscript/flex/flash is implemented for applications on the PlayBook, so that better explain to others.

    Thanks for the clarification.

    Your AS3 code compiles into a SWF file that is running on the virtual machine in the AIR runtime.

    From: http://www.adobe.com/devnet/flashplatform/whitepapers/roadmap.html

    "Adobe continues to invest actively in allowing developers to create and deploy Flash based content such as mobile (or office) applications through Adobe AIR."

  • How can I get the path to the directory of photos on the playbook?

    I'm developing a drawing application which includes a backup of the file function.  I want to save the album image in the Directory General views about the playbook. Then, the user must be able to display their picture recorded on an album in the photo directory.  I found all kinds of examples on how to do this for the shared directory app (using blackberry.io.dir.appDirs.shared.camera.path), but I have not found how to get to the general (non - specific app) directory images.  How to this directory using javascript?

    Tried it - doesn't work either.  I also tried to create a subdirectory in the shared directory / photos:

    var path = "file:///accounts/1000/shared/photos/JustDraw";
    
    if (!blackberry.io.dir.exists(path)){
           blackberry.io.dir.createNewDir(path);
       }
    

    But who doesn't either.

  • Video of the PlayBook

    I am playing the video through the works of web for playbook.

    Here's the code HTML that I use to play the video.

    It works on the browser, but no video plays in the playbook Simulator. Please help me as app must be sent in 31 of this month.

    Or tell me how to play videos in the playbook.

    Video output will not play on the simultor either due to lack of codecs.

    It will run on the physical device running 0.9.4 external videos, videos not just the.

  • Licenses in common/dynamic: all the PlayBook apps use it yet?

    I'm curious to know if anyone uses licenses either grouped or dynamic models in their PlayBook application, even if you are totally ignorant in the application itself.

    In other words, you configured license model for your application in the portal provider to be either people?

    In the affirmative, please let me know what the app is so I can buy and download it (preferably not an expensive application ).  I'm interested in looking at the content of the app folder in archive (since RIM has kindly put trivial for it) to see if there is something in there that represents the license key data.  (I checked about 100 applications so far and none have resorted to these licensing models, but mostly I just checked in free applications.)

    If this information is displayed, it should be possible to recover in the application and use it to "close the loop" on this license thing and actually start to use this mechanism to protect against piracy.  It would also largely irrelevant that our applications are completely exposed in backup archives for now.  (After all, when was the last time you used the software on a PC which can not examine in detail, if you were so inclined?)

    Okay, so I finally found the license key in the PlayBook.

    As mentioned earlier, at first, I was using my sandbox account to buy the app, and although the key appears immediately after download, it seems not be stored anywhere.  (She was also the license key delivered to the original purchaser of the application according to the portal provider report of purchase, but that's a story for another time.)

    I've disabled my sandbox account and tried again.  As mentioned, this time, that the license key appears whenever I run App World and let me easily tap to copy to the Clipboard.

    I wouldn't be hard to have a user that and stick it in a field in my application to activate it, if I were to add such a feature.  It may take a bit of practice for them to do, and I could very well imagine that support costs could be quite high, because many users would not probably has an idea how to follow instructions.  RIM: this should really be improved with an API!

    Anyway, I did another backup for DM and looked at the archives.  This time I was able to find the license key in the backup, if it is not in the folder of my own app.  I won't go into the details here... it benefits no one.

    I don't see that there is no way for our applications retrieve this information programmatically, so for now we seem to depend on the user action manual, which sucks, but at least gives us a step in the right direction.  For an application with sufficient value to justify the cost of implementation of this and support/training/mothering users through the technique of the copy/paste the license key, it is at least technically feasible now for use as a method for the best protection against copying.

  • Configure the playbook Simulator

    Hello

    I just downloaded the playbook Simulator and I see it's a vmx file. I have to pay for a license of VMWare?

    Thank you.

    JB

    You'll need VMWare Fusion on Mac. It requires the license.
    VMWare Player is free for a personal use but Windows only.

  • Sencha Touch not displaying icons only not the Playbook Simulator

    I see this weird problem. I wrote a simple Webworks app using Sencha Touch. It works fine on the desktop browser. However, on the Playbook Simulator, I see a few flaws. For example the standard icons not displayed. See the pictures attached to the difference:

    On the Playbook Simulator:

    On the desktop browser:

    I know that's not a consolation, but when I tried the latest version of PlayBook on the physical hardware toolbar buttons work fine.

    I ran through the example of the kitchen sink and everything is made perfect!

    So know that your problem will be solved in the official v1.0 RTM software version and Simulator.

  • E-mails from native client on the Playbook

    Hello community,

    In the light of the updated OS2.0, I want to raise the painful question about the Playbook native e-mail client features. Is there a way to integrate the sharing by e-mail of demand for AIR? Is there an API?

    Door on Android application sharing via email works perfectly

    And I really want to add this feature in air app playbook.

    Thank you.

    I have not tested, but as a potential workaround solution (it should not be a native/AIR this way)... an HTML mailto: works to launch the application Messages a link... you might therefore be able to use navigateToURL to go to: "mailto:[email protected]?subject=Woah!" & body = everybody was Kung Fu fighting! »

Maybe you are looking for