Error in management: TypeError: result of expression 'blackberry.media' [undefined] is not an object

I'm taking pictures in my widget, but when I make the call

blackberry.media.camera.takePicture (successCB, closedCB, errorCB);

I got this error in the Simulator as well as in a real device: "error in management: TypeError: result of expression 'blackberry.media' [undefined] is not an object.

Also, I included the function in the config.xml file:

I don't know what else could be.

Hello

I have not a 9360 around me at the moment, but I just tried it on a 9900 7.0 running and the above code ran very well.

On your device, could you please navigate:

Options > device > application > search and highlight her is > press the menu key, then select change permissions > set all allow (or as high as possible) > save options and re-run your application under test.

It is more of a longshot, but get a little creative.

Also, you use the latest version of the SDK software (2.3.1) smartphone while packing?

https://bdsc.webapps.BlackBerry.com/HTML5/download/SDK

I'll try and think a little more ideas, but the above code should work on a device of 7.0. Maybe someone from the community can check on them?

Erik Oros

BlackBerry Development Advisor

Tags: BlackBerry Developers

Similar Questions

  • TypeError: Result of expression 'new blackberry.invoke' [undefined] is not an object. Application of bbUI

    I am facing an error during the use of the blackberry and the blackberry.invoke feature, invoke. BrowserArguments

    I have a group of items in an imageList, an element is defined as this line

    Minutes from anywhere

    function openUptownCairoLink() {}

    try {}

    var args = new blackberry.invoke.BrowserArguments ('http://blackberry.com');

    BlackBerry.Invoke.Invoke (blackberry.invoke.APP_BROWSER, args);

    } catch (e) {alert (e)}

    }

    and when I click on the element, it warns the error as in the subject of this topic.

    I'm using BB Bold 9900 with OS 7

    You will need to do the following:

    http://192.168.0.140:8888" subdomains="true">
      
      
      
      
      
      
      
      
      
      
    
    
  • TypeError: Result of Expression

    TypeError: Result of expression 'blackberry.push.openBISPushListener' [undefined] is not a function.

    This code is directly from the API documentation.  So what is wrong?

    
    
        
            
            Push Listener
    
        
        
            
    bbwp "c:\applications\devBlog\devBlog.zip" /g 
    

    will suffice

  • TypeError: Result of expression 'item' [undefined] is not an object.

    Hello

    I can userstand the good way to spend the ListItemData given to a page entry. In the example ListView generated here is what is generated.

    import bb.cascades 1.2
    NavigationPane {
        id: nav
        Page {
            Container {
                ListView {
                    dataModel: XmlDataModel {
                        source: "data.xml"
                    }
                    onTriggered: {
                        if (indexPath.length > 1) {
                            var chosenItem = dataModel.data(indexPath);
                            var contentpage = itemPageDefinition.createObject();
                            contentpage.itemPageTitle = chosenItem.name
                            nav.push(contentpage);
                        }
                    }
                    accessibility.name: "Listing"
                }
            }
        }
        attachedObjects: [
            ComponentDefinition {
                id: itemPageDefinition
                source: "ItemPage.qml"
            }
        ]
        onPopTransitionEnded: {
            page.destroy();
        }
    }
    
    import bb.cascades 1.2
    Page {
        property alias itemPageTitle: titlebar.title
        titleBar: TitleBar {
            id: titlebar
        }
        Container {
        }
    }
    

    If I wanted to copy the input data to the push page, then I can do that.

    import bb.cascades 1.2
    NavigationPane {
        id: nav
        Page {
            Container {
                ListView {
                    dataModel: XmlDataModel {
                        source: "data.xml"
                    }
                    onTriggered: {
                        if (indexPath.length > 1) {
                            var chosenItem = dataModel.data(indexPath);
                            var contentpage = itemPageDefinition.createObject();
                            contentpage.item = chosenItem
                            nav.push(contentpage);
                        }
                    }
                    accessibility.name: "Listing"
                }
            }
        }
        attachedObjects: [
            ComponentDefinition {
                id: itemPageDefinition
                source: "ItemPage.qml"
            }
        ]
        onPopTransitionEnded: {
            page.destroy();
        }
    }
    
    import bb.cascades 1.2
    Page {
        property variant item
        titleBar: TitleBar {
            id: titlebar
            title: item.name
        }
        Container {
        }
    }
    

    And this also works except that it generates a

    TypeError: Result of expression 'item' [undefined] is not an object.

    error. Thus, it is written in the ebook learn Blackberry App Development 10. Anyone know how to get this to work without him spit the error type?

    Thank you

    the problem is that the point is not defined when the page is created.
    a solution would be to use onItemChanged to set the title.
    or use something like element? Item.Name;
    There are many other possible solutions, but these two come to mind that the easier.

  • MuseJSAssert: Error calling the function switch: TypeError: undefined is not an object (evaluation of "a.rules")

    I have this error on my Web site every time that I go. It disappears when I refresh three times.

    "MuseJSAssert: error calling the function switch: TypeError: undefined is not an object (evaluation of"a.rules").

    I downloaded the site with Filezila.

    Please help, what's wrong here?

    Thank you

    Hi Barbara,

    The question began to happen after you downloaded using the latest version of Muse?

    If so, can you try to remove the old files of the web server and re-upload using Muse?

    Kind regards

    Akshay

  • Error 21. Undefined, is not an object. Can't get management to work

    When I try to use picture frames, I get this message... Error 21. Undefined is not an object

    Harold, it seems that the bug has not been fixed, but I worked on a temporary fix for this issue. See my comment to you in the other post about it:

    error message 21 under filter/rendering/image

  • 'undefined' is not an object ("new blackberry.pim.contacts" evaluation)

    Hi, I'm working on the PIM contact. I did the CPO. That works well, but when I put implement this code in my project, I am getting following error

    TypeError: 'undefined' is not an object ("new blackberry.pim.contacts" evaluation)

    He comes to
    findOptions = new blackberry.pim.contacts.ContactFindOptions ();

    I added also permission

    <>ermissions >

    <>Ermit > access_pimdomain_contactsermit >

    ermissions >

    Any help

    I have error. To add the function id in the config file.

    I forgot that part.

  • "TypeError: undefined is not an object ' after the 2014.1.1

    I see the error: "TypeError: undefined is not an object (evaluation of"cpoint.getSymbolElement") in a composition of _upgraded that arouses points and tooltips to not appear in the charged composition.»

    Animate edge version 2014.1.1

    Mac OS 10.10.1

    Safari 8.0.2, 40.0.2214.94of Chrome, Firefox 35.0.1

    This question has started to happen after 2014.1.1 updated

    No changes have been made to my computer and I tested it on other computers with the same result

    Here is the improved composition that does not work: http://inlightmedia.com/edge-interactive-svg-maps_upgraded/

    Older composition which displays correctly the pins and ToolTips: http://inlightmedia.com/edge-interactive-svg-maps/

    Two compositions zip files: Zip file

    I strongly am a rookie Edge and JavaScript and have been amend this (which was created by someone else is no longer supports) according to my needs. Any help is at work in the new version of edge would be greatly appreciated.

    Thank you
    Jansen

    Hello

    It's compositionReady, the #34 line:

    You've written: var = cpoint sym.createChildSymbol ("point", "stage");

    and it was: var sym.createChildSymbol = cpoint ("point","STagus");

    step must be capitalized: stage.

  • error in Java script "undefined is not an object.

    Dear all,

    IM using InDesign CS4. Im trying to remove managers of anchor text. but I got the error msg "undefined is not an object. Here's my code for the part.

    app.findGrepPreferences.findWhat = "AQ\\d +";

    myFoundItems = app.findGrep ();

    var myLen = myFoundItems.length;

    for (var i = myLen-1; i > = 0; i--) {}

    Alert (myFoundItems [i]. (Happy);

    var a = app.select (myFoundItems [i] .parentTextFrames);

    a.Remove ();

    }

    Please help someone.

    Thank you

    Selva

    Hi Marijan

    Unfortunately, this is not correct, because "parentTextFrames" is an array of blocks of text, so this will fail. Maybe something like this:

    myFoundsItems[i].parentTextFrames[0].remove();
    

    It works!

    Thank you very much. I also thank Ariel for his work.

    That kind of you.

    Wow.

    Selva

  • JavaScript exception: error calling the selection function: TypeError: undefined is not an object ('jQuery.browser.msie' assessment)

    Hi all

    my site www.theperthcollective.com is this error on the only secure site (https) on the Tickets Page Workshop tickets

    With ' some files on the server may be missing or incorrect. Clear the browser cache and try again, if the problem persists please contact the author of the Web site.

    Also the Mumblr widget does not work on the secure site.

    Can anyone help? IM at my wits end. I've tried everything I can think of and nothing worked. It is hosted with GoDaddy.

    Thank you

    Hayley

    Have you actually checked it in different browsers? with which browser you test? Since it specifically points to MSIE, this could be a fluke due to browser being obsolete...

    Mylenium

  • JavaScript exception: error calling the function switch: TypeError: undefined is not an object (evaluation "jQuery.browser.msie") - HOW I ME get RID OF THIS

    Screen Shot 2015-12-12 at 16.54.47.pngScreen Shot 2015-12-12 at 17.01.45.png

    Hello

    I get these errors a lot lately on my sites of muse - it happens when I rename pages or change the navigation menu - I tried several times and this isn't to do with external plugins - this is a bug of muse - appears when my loading sites and also when you select a page in the navigation bar - in the past for a single page websites - I just copy the contents in memory - remove the rebonding and page - everything and it works again - of course, I don't want to do that with Web sites with multiple pages - in the past, anyone in the forum mentioned deleting a file of muse on the server to reset something - any who want to add to it or guide me to solve these problems, so I know what to do when they arrive

    Jay

    Don't know if it's the same thing, but share this discussion JavaScript exception: error calling the function of selection: [object error] after the last update of the software Adobe Muse.  I export the html files and load them on my server.  I replaced all the files.  Only happens in IE11 just in case it helps.

  • Of ERROR APPEARS WHEN I LAUNCH MUSE SITE IN BROWSER: MuseJSAssert: error calling the function switch: TypeError: undefined is not an object ('jQuery.browser.msie' assessment)

    Hello

    I am at a loss why I get this error - I thought it might be hyperlinks on the page so I stripped all the links page to other pages I've had more than a month to is rearranged pages - and even removed from the homepage and glued in place - but this issue has not changed - how bad can I turn this extra - the error is so vague and make no mention of what that either I can target - any advice would be welcome.


    Jay

    Please try to re - publish the site, download all the files manually using any FTP client and then check.

    If still the same issue, we provide the url of the site.

    Thank you

    Sanjit

  • Smartphones blackBerry Media card can not be read or format

    I pasted in my SanDisk 4 gig card in my "BOLD" and I got a message saying media card has been inserted. When I go into options - memory, it displays a message that says:

    "media card can not be read. Check that the memory card is formatted. »

    I then try to format the card, but I get a message that reads: Media Card Format failed.

    I can read the card on my PC, but the "BOLD" just will not do anything with it except tell me when I put in or he pulled.

    Someone knows how to fix this?

    Thank you

    OMG! After spending hours reading stuff, I finally got to work.

    All I had to do was turn the phone off and remove the battery then put it back in.

    I could just kick myself!

  • Smartphones blackBerry media card is not currently inserted in this device

    Alltel installed a card 2 GB sd in my bb how can I get the bb to see?

    It turns out that it is a bad phone, after 1.5 h to the alltel store today. Thanks for the help.

  • BlackBerry Smartphones Blackberry Media Sync continues to display 'Please connect a Blackberry smart phone' when the Blackberry Storm is connected to the PC

    About a 2 months ago when I would like to connect my (the first storm) blackberry storm to my computer via the USB cable supplied with the phone, I was able to transfer music from my computer (itunes) to the blackberry via Blackberry Media Sync with no problems (open Blackberry Media Sync, connect blackberry to the computer via the USB port and screen Media Sync would change so that I could sync to the blackberry storm music). I didn't even have to install Blackberry Media Sync in December 2009

    But now after I connect my Blackberry Storm to my computer, the screen of Blackberry Media Sync does not change and continues to display "please connect a Blackberry smartphone. I tried these tips I found online:

    1.) several reboots my computer (windows vista)

    2.) update/reinstall Blackberry Media Sync, then by restarting my computer

    3.) reconnection from blackberry to the computer, then open Media Sync

    4.) Open Media Sync first and then connect the blackberry to the computer.

    5.) installation BlackBerry USB and Modem drivers (even if I can't find the USB driver for it under the Universal Serial Bus Controller when I check in the Device Manager when you go to control panel – system and Maintenance – Manager of devices, but I found a v2 COM4 and COM5 RIM virtual serial Port when you select "devices by connection" under display in Device Manager) or are RIM Serial Port virtual v2 COM4 and COM5 drivers I'm looking for?

    6.) go to Options (on blackberry) - memory and make sure Media Card Support, Media Transfer Protocol (MTO) and Mass Storage Mode Support are resolved on 'On', the encryption Mode is set to 'None' and mass storage Mode Auto activate when connected, it the value "Prompt" although I tried to 'Yes' as well. It says I have 785 MB of memory space of the unit out of 879 MB total memory of the device and 7.1 GB of free space on a total of 7.3 GB of Media Card Media Card.

    None of the above tips and troubleshooting tips worked. I also checked the Blackberry technical solution center but I've not found anything there that has contributed to the other. I found discussions forums online, including issues of people with 'blackberry media sync cannot connect to the device' pop up, but I have not had this pop-up. The Media Sync screen remains just the same as if I never connected the blackberry storm to my computer in the first place even if my blackberry storm recharges via the computer.

    Is there something that I miss or have not yet done? What should I do?

    Too bad. I went to a Verizon store and they me remove the battery and turn the blackberry. Worked like a charm and I can now use Media Sync.

    Also told me that I need to update the software of the phone blackberry using Blackberry Desktop software (I have version 4 and need to update to 5) and make sure to choose to back up files when you are prompted during the update or you will lose all files, the media and info saved on blackberry.

Maybe you are looking for

  • HP deskjet 3050 a cannot connect

    has printers HP deskjet 3050. Can't connect wirelessly to... tried all the hp helps but still not working when I enter the ip address in the configuration of the printer print report say nothing but good things. Firewall disconnected... gunna lob it

  • New AD Network Design

    Asked me to design a new network of Active Directory for my business. Where should I start?I am looking for a kind of map of Q and A questions about the types of users and of their functions, etc that I can use to make you to configuration etc group.

  • display of a document

    I am trying to display 2 excel documents at the same time in their own window. Went to control panel, folder options and clicked on "open each folder in its own window" hit apply, ok, computer rebooted and nothing has changed

  • Windows cannot communicate with the device he resourse (primary DNS server).

    Original title: primary dns. Help, please Windows cannot communicate with the device he resourse (primary DNS server) Please help me solve this problem

  • Windows 7 hibernate problem

    Hi all My HP Pavilion dv6-2113tx with Windows 7 SP1 installed does not seem to be able to successfully Hibernate more. When I click on Hibernate mode, the screen shuts off and then suddenly flashes and the screen stays off, while the PC stays on. If