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.

Tags: BlackBerry Developers

Similar Questions

  • 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 
        
        
    
    
    
    
    
    
    
    
  • Access and camera Gallery API

    Is there an API, which help us to access the photo gallery and camara to adjust the image, as under

    a few tips here...

    FileConnection

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800620/What_Is...

    FileConnection.list)

    See you soon...

  • 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.

  • 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

  • Edit the EXIF tags?

    I'm working on a simple EXIF viewer/editor.

    I think we can use these to read EXIF tags:

    http://developer.BlackBerry.com/native/reference/BB10/com.QNX.doc.camera.lib_ref/topic/camera_meta_g...

    But how to re - write the values of these tags?

    in this case, do not look at the camera API.

    libexif is available on the platform, then I suggest you want just for examples.

    I have here a sample by libexif to detect whether the flash was fired in photo:

    https://github.com/BlackBerry/presentations/tree/master/2012-BlackBerryJam-Americas/JAM15/FlashPhoto

    This example uses the camera API to locate a photo EXIF metadata before it is saved to the disk, but I could just as easily use the functions of libexif to locate the EXIF data inside the JPEG buffer.

    The reason why a separate plea exists thanks to the camera what API for this is so that we can support the metadata in uncompressed images that perhaps has no standard mechanism to encapsulate metadata.

    See you soon,.

    Sean

  • Lightroom 4 version 4.4 - Import does not work

    I have Lightroom 4 version 4.4, and when I click on the Library tab and then click on "Import" the program no longer works and I like

    HI Josapeanut

    You use Mac/Windows?

    Do you have any external device (phone, camera, Tablet, external drive, card) connected?

    If so remove them and try to re-import

    ~ Assani

  • Tablet Camera API

    Hello world.

    I'm new to BB tablet development but have been a professional developer of BB Phone for a lot of new times. I'm currently researching a project I'd like to undertake that would suit the BB Tablet and I have just a few questions that I would apprectiate anyone in the know have a look;

    1: it is possible to integrate the image of the camera within an application?

    2: is there a source code available for free / api for interpreting QR codes?

    3: there seems to be plenty of choice for the developing countries to the Tablet, which would be the best for an application that makes SOAP based web service calls, incorporates an image of the camera such as discussed in Q1 and interpretation of QR codes as discussed in Q2?

    Thank you

    Graeme.

    Graeme,

    Here is a simple code, which I used to access the camera. He puts a pretty big 'live view' on the stage with a button to capture. Then it freezes the image on the screen and allows you to provide a file name and save it. He puts it in a folder "documents" in the media directory.

    I have attached a .zip containing only the com.pfp imports for the Async JPEG encoder. It still "hangs" while the economy so some tweaking to do yet but works.

    package {
        import com.pfp.events.JPEGAsyncCompleteEvent;
        import com.pfp.utils.JPEGAsyncEncoder;
    
        import flash.display.Bitmap;
        import flash.display.BitmapData;
        import flash.display.Sprite;
        import flash.display.StageAlign;
        import flash.display.StageScaleMode;
        import flash.events.MouseEvent;
        import flash.filesystem.File;
        import flash.filesystem.FileMode;
        import flash.filesystem.FileStream;
        import flash.media.Camera;
        import flash.media.Video;
        import flash.utils.ByteArray;
    
        import qnx.dialog.AlertDialog;
        import qnx.ui.buttons.LabelButton;
        import qnx.ui.text.TextInput;
    
        public class fishyLightningCam extends Sprite {
            private var bitmapData:BitmapData = new BitmapData(972, 546);
            private var bitmap:Bitmap;
            private var byteArray:ByteArray;
    
            private var file:File = File.documentsDirectory;
            private var fstream:FileStream;
    
            private var captureBTN:LabelButton = new LabelButton();
            private var discardBTN:LabelButton = new LabelButton();
            private var saveBTN:LabelButton = new LabelButton();
            private var fileName:TextInput = new TextInput();
    
            private var cam:Camera = Camera.getCamera("1");
            private var vid:Video = new Video(972, 546);
    
            private var jpgEncoder:JPEGAsyncEncoder;
    
            public function fishyLightningCam() {
                super();
    
                // support autoOrients
                stage.align = StageAlign.TOP_LEFT;
                stage.scaleMode = StageScaleMode.NO_SCALE;
    
                cam.setMode(2592, 1456, 48);
                cam.setQuality(0, 100);     
    
                takePictures();
            }
            private function takePictures():void {
                if (cam != null) {
                    vid.attachCamera(cam);
                    vid.x = 26;
                    vid.y = 5;
                    addChild(vid);
                } else {
                    var noCamAlert:AlertDialog = new AlertDialog();
                    noCamAlert.title = "Camera Error";
                    noCamAlert.message = "No camera was detected. Please ensure no other apps are using the camera.";
                    noCamAlert.addButton("Okay");
                    noCamAlert.show();
                }
    
                captureBTN.label = "Capture!";
                captureBTN.setPosition(400, 550);
                captureBTN.width = 224;
                captureBTN.addEventListener(MouseEvent.CLICK, captureImage);
                addChild(captureBTN);
    
                fileName.prompt = "File Name";
                fileName.setPosition(36, 555);
                fileName.width = 350;
                fileName.visible = false;
                addChild(fileName);
    
                saveBTN.label = "Save";
                saveBTN.setPosition(400, 550);
                saveBTN.width = 100;
                saveBTN.visible = false;
                saveBTN.addEventListener(MouseEvent.CLICK, saveCapture);
                addChild(saveBTN);
    
                discardBTN.label = "Discard";
                discardBTN.setPosition(524, 550);
                discardBTN.width = 100;
                discardBTN.visible = false;
                discardBTN.addEventListener(MouseEvent.CLICK, discardCapture);
                addChild(discardBTN);
            }
            private function captureImage(e:MouseEvent):void {
                bitmapData.draw(vid);
                bitmap = new Bitmap(bitmapData);
                bitmap.x = 26;
                bitmap.y = 5;
                addChild(bitmap);
                removeChild(vid);
    
                captureBTN.visible = false;
                saveBTN.visible = true;
                discardBTN.visible = true;
                fileName.visible = true;
            }
            private function saveCapture(e:MouseEvent):void {
                jpgEncoder = new JPEGAsyncEncoder(100);
                jpgEncoder.addEventListener(JPEGAsyncCompleteEvent.JPEGASYNC_COMPLETE, encodeWIN);
                jpgEncoder.encode(bitmapData);
            }
            private function encodeWIN(e:JPEGAsyncCompleteEvent):void {
                addChild(vid);
                removeChild(bitmap);
                fstream = new FileStream();
                fstream.openAsync(file.resolvePath(fileName.text + ".jpg"), FileMode.WRITE);
                fstream.writeBytes(e.ImageData);
    
                /* byteArray = new ByteArray();
                byteArray = e.ImageData;
    
                byteArray.position = 0;
                fstream.writeBytes(byteArray);
                fstream.close();
                */
    
                captureBTN.visible = true;
                saveBTN.visible = false;
                discardBTN.visible = false;
                fileName.text = "";
                fileName.visible = false;
            }
            private function discardCapture(e:MouseEvent):void {
                addChild(vid);
                removeChild(bitmap);
    
                captureBTN.visible = true;
                saveBTN.visible = false;
                discardBTN.visible = false;
                fileName.text = "";
                fileName.visible = false;
            }
        }
    }
    
  • Camera 7 1800 HP Tablet displays no image

    Just got a 7 1800 HP Tablet.  When you turn on the camera app, no images are displayed at all.  I tried passage of video camera and get an error message "Unfortunately Gallery has stopped." Then the application closed camera itself.  Any suggestions please?  Thank you!

    Thanks for the suggestions. Tried the image recovery plant with the help of technical support, but without success. It seems to be a problem with the unit and we exchange. HP technical support is great and I appreciate the help of the forum community as well.

  • Before facing the camera does not not on HP Omni 10 tablets

    Hello

    I have a tablet of 10 HP Omni with oc2722 camera and it has a mistake on this issue in the Panel - error is this device cannot start. (Code 10)  STATUS_DEVICE_POWER_FAILURE - if I update the driver or remove and search, I get the message that I already have the updated driver.

    Any ideas?

    Thank you very much

    No, it looks like you have exhausted your troubleshooting efforts. You can contact support phone for your repair options:

    In North America: 800-474-6836
    Click here to see outside North America

  • Data transfer from the camera to the Tablet

    I am considering buying a HP Slate & I am wandering is the best way to transfer photos from my digital SLR camera Nikon to the Tablet, also, which is the best access point for photo editing.
    Thank you very much

    Stream can use an otg memory card reader.

  • Tablet crash when you open the camera app

    I recently received a Dell coming Pro 8 and I'm having some major issues with the camera application and any other application tries to access the camera on the tablet.  When I try to use the camera, I get a blue screen of death, I guess you could say. "Restart your PC on a problem and needs".  The error I'm getting attempted_execute_of_noexecute_memory.  This tablet is brand new and there is barely anything installed on it except photoshop.  I hope you guys can give me help!  Thank you.

    I had the same problem with the same device & resolved as follows;  uninstalled the imaging device driver & chose to delete at the same time the driver in Device Manager and then restarted. camera works now.

  • Camera for PlayBook API

    I've seen a camera for BB10 API, but do not see it for PlayBook NDK.

    It will be available? When?

    It is in the beta 2.1 NDK and ship on OS 2.1 for PlayBook.

    See you soon,.

    Sean

  • All API new camera

    Hi, I'm doing a button for my application that pulls the camera...

    I am using the new API, which is included in version 2.1 of the SDK...

    I work with an example that I found in this forum

    function takePicture() {
      try {
        blackberry.media.camera.takePicture(successCB, closedCB, errorCB);
      } catch(e) {
        alert("Error in supported: " + e);
      }
    }
    
    function successCB(filePath) {
      alert("Succeed: " + filePath);
    }
    
    function closedCB() {
      alert("Camera closed event");
    }
    
    function errorCB(e) {
      alert("Error occured: " + e);
    

    But I do not understand the first argument... When I run the program, it works and it draws from the camera, but when I capture the image... nothing happens, and the only thing I can do, it's the camera NEARBY... So, when I close it... He runs the closedCB function

    Hi emsbenitez,

    Have you looked at this post specifically point to code that should work. The problem with the API is that the alert will not be displayed while the application is in the background (which is while the camera shows).

  • the basics of the API camera and when to call camera_confing_flash / camera_config_videolight

    I searched this forum for information about the structure of the API of camera, but other than the examples of apps Hello (video) camera in the rest of the community, I can't find anything. I found a reference to a session of world BlackBerry - Introduction to the Native API of camera C / DEV179 I would really appreciate a recording or a slide deck or something of this presentation, but if this is not available, can someone tell me the * general * sketch for the camera work? Right now, it seems that the cascaddes document is scanned / setup, the foreign window is attached to the camera, then the device is open, then the viewfinder is configured and open and then the camera can record. can someone comment on that? Thanks for your time!

    Start here

Maybe you are looking for