Invoking browser on Playbook

I cannot get the browser starts the emulator when that invokes Web works

my manifesto:


 
 
 
 

Code:

var args = new blackberry.invoke.BrowserArguments ("http://www.cnn.com");

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

Anyone got any ideas?

The Simulator has currently this feature (it can not play sound either) so that we can just pray that our code is correct.

Tags: BlackBerry Developers

Similar Questions

  • Creating an icon of web browser for Playbook

    Following the steps described on this page below I'm stuck at the part of creation of the full browser due to some certificate on the command line error messages.  This position requires update?  I am able to create a web application "chrome", but I need to create a full browser giving access to external URLS.

    http://supportforums.BlackBerry.com/T5/Web-and-WebWorks-development/how-to-create-a-Web-icon-for-bla...

    For the following command, where signing_cert.p12 & - storepass come?  Is there another step to register somewhere?

    Package-uripackager-BlackBerry bbc.bar blackberry - tablet.xml img\pb_icon.png - buildId 1 - signRIM - signDev - keystore signing_cert.p12 - storepass xxxxxxxxxxxxxxxx - cskpass xxxxxxxxxxxxxxx

    Thank you

    No, it isn't. An application WebWorks is an instance without wrapping the same rendering engine used by the native browser application, but not sharing the chrome.

    I think what you're looking for is a way to launch the browser application to a URL target of an icon on the home screen.  You can do technically with JavaScript, but you want to set a screen image loading in your config.xml file otherwise you will see a white screen before the launch of the Explorer.

    Here is an example:

    config. XML

    
    http://www.w3.org/ns/widgets"
            xmlns:rim="http://www.blackberry.com/ns/widgets"
            version="1.0.0.1" id="openbrowser" xml:lang="en">
    
        open browser
    
        
        
    
        
        
        
    
    
    

    index.html

    
    
    
        
    
    
    

    Note: the browser app PlayBook himself of a «bookmark to the home screen» feature has

  • Invoking browser by clicking on a button (QML)

    Hello

    I try to call the browser at a certain URL by clicking a button. I did InvokeActionItems where you put in a block of query and add the invokeTargetid, the invokeActionId and the uri.

    However, for a button, it seems a bit of a hack of the irrational and little messy code. This code WORKS next, but gives me an error in the "InvokeQuery" saying "read only property cannot be set.

    Here's the code. Fact all look right and anything maybe cleaned? The whole "onArmed" and the attached Invocation object looks a bit weird.

    Button {
                        id: googleMapButton
                        overlapTouchPolicy: OverlapTouchPolicy.Allow
                        text: "Google"
                        onClicked: {
                            invokeGoogleMapQuery.uri = "http://maps.google.com/"
                            invokeGoogleMapQuery.updateQuery();
                        }
    
                        attachedObjects: [
                            Invocation {
                                id: invokeGoogleMap
                                query: InvokeQuery { // *error here
                                    id: invokeGoogleMapQuery
                                    invokeTargetId: "sys.browser"
                                }
                                onArmed: {
                                    trigger("bb.action.OPEN")
                                }
                            }
                        ]
    
                    }
    

    Try this...

                Button {
                    text: "Invoke Browser"
                    onClicked: { invokeBrowser.trigger("bb.action.OPEN") }
    
                    attachedObjects: [
                        Invocation {
                            id: invokeBrowser
                            query.invokeActionId: "bb.action.OPEN"
                            query.invokeTargetId: "sys.browser"
                            query.uri: "http://www.stok.biz"
                        }
                    ]
                }
    
  • Incoming Push invoking browser

    I played with the sample code pushCollector. However I stumbled across a weird problem.

    In the pushNotificationHandler (app.cpp) service, I try to call the webbrowser (code example below).

    The code works fine, if the application is started and in the foreground, but does not work when the application is started from the invocation to push himself.

        QString URL = "http://www.google.com";
        InvokeManager invokeManager;
        InvokeRequest request;
        request.setTarget("sys.browser");
        request.setAction("bb.action.OPEN");
        request.setMimeType("text/html");
        request.setUri(QUrl(URL));
        invokeManager.invoke(request);
    

    As this cannot be debugged easily (app must be closed in order to reproduce), I would like to know if anyone has an idea, what's not here.

    So, after talking with the team of the invocation, it seems that not being is not able to issue an invoke through an application running in the background is expected behavior.

    Here's the exact warning in the newspapers that I get when I tested it myself:

    WARNING - background application 'pushcapture.testRel_pushcaptureb8c6c6ec' is not the right to call for applications

     

    The reasoning behind this is a user experience.  Your application runs in the background, so it should not be able to invoke / run another application in the foreground (for example, the browser).

    That being said, there is a possible option, I can think of off the top of my head.  You could add a notification on the BlackBerry Hub and when the user opens your app and the related push, launch the browser with the appropriate content.  I'm not sure if the URL you were trying to open in the browser is directly related to your push button.  I'm just speculating.  Are related somehow?

    If you tell me your specific scenario, I might be able to think of other options as well.

    Thank you

    Matt

  • invoke browser

    Hello

    I try to call from a webworks app browser and its does not work and I can't find my mistake:

    looks like a link:

    var html = '

    '+title+'

    '+desc+'

    ';

    the JavaScript function: I've changed for the test:

    function openBrowser(url) {
      var args = new blackberry.invoke.BrowserArguments('http://www.blackberry.com');
      blackberry.invoke.invoke(blackberry.invoke.APP_BROWSER, args);
    }
    

    his does not work at all on a real device or in training. The necessary features are enabled.

    What Miss me?

    the trick is to add an addition "as:

    openBrowser(\''+link+'\');
    
  • Has there been a fix - invoke browser to play the video, then return to original app?

    It is esay for an application call the web browser and it powers a url to play the video with Media Player. The problem is that if the user presses the 'Back' button while the media player is open, and they had before the browser open with pages of its history, the previous web page, instead of going back the original app.

    In the thread below, Mark responded that there is no way to go back to the original app in the above case. It has been four months since, has there been a fix or work around for?

    http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&message.ID=25230&query.ID=78...

    Without a work-around, it would be a painful experience

    Thank you

    There is no solution for this scenario.  The best way to handle this current version of BlackBerry device software would be to play the video in your own application by using the player class instead of launching the browser.

  • Browser blackBerry Playbook for Smartphones

    Generally worked well, except that something prevents the completion of the connection to YouTube.

    Other buttons on several pages not work sometimes.

    Is this a Java bug? Or something else? No matter, it will not work.

    I would like to access my YouTube account where are all my videos. Selfish, am I?

    Has decided to enter a Google account and then tried to open YouTube, because who is recommended.

    Well, it worked! Immediately, before I could blink, the account I was open.

    So, it's one of past problems.

    The major problem that exists with the PlayBook is that Blackberry Desktop Software never open applications, etc., that are there, for example with a Torch 9800.

  • URL get chopped during blackberry.invoke PlayBook OS 2

    In PlayBook OS 2, I see a strange phenomenon where my URLs are getting chopped to the comma.  If I go the following URL:

    http://maps.Google.com/maps?q=38.93333333333333,-77.40 & zoom = 13

    in this code as the url variable

    var args = new blackberry.invoke.BrowserArguments(url);
    blackberry.invoke.invoke(blackberry.invoke.APP_BROWSER, args);
    

    the url in the browser on PlayBook OS 2 becomes:

    http://maps.Google.com/maps?q=38.93333333333333

    In OS 1 this was never a problem, so I think that the browser updated to OS 2 is to cut out the URL to the comma.  Everyone knows this?  Any advice on how to work around this problem?

    How about using escape()?

    http://maps.Google.com/maps?q=38.93333333333333%2c-77.40&zoom=13

    I'm "guessing" something like this will work...

    var args = new blackberry.invoke.BrowserArguments(escape(url));
    blackberry.invoke.invoke(blackberry.invoke.APP_BROWSER, args);
    
  • Could not invoke the browser

    Hi guys,.

    When I run the form module im getting an error of form cannot invoke browser.
    http://ImageShack.us/photo/my-images/197/unled2mgi.PNG/


    I put the path to the browser in the registry.pls see link below
    http://ImageShack.us/photo/my-images/11/unled1xhs.PNG/

    How do I rectify this error?

    Thanks in advance

    form of location of browser web builder - Edition - Preferences - DURATION.

  • HTML5 on Playbook

    Hi guys,.

    I try a simple script HTML5 drag / move with ripple on the Chrome browser / emulator Playbook - that works well and when I create folder and tested PlayBook - bar not working!

    What could be the possible reason? I use the latest SDK BlackBerry Tablet 2.2.0.5 WebWorks and my PlayBook under 2.0.1

    Thanks in advance.

    You have got it, which is a great article to start. As a quick comparison, a mouse event might look like this:

    image.onmousedown= function (e) {
        console.log('X: ' + e.clientX);
        console.log('Y: ' + e.clientY);
    };
    

    Whereas a key event may look like this:

    image.ontouchstart = function (e) {
        console.log('X: ' + e.touches[0].clientX);
        console.log('Y: ' + e.touches[0].clientY);
    };
    

    Note that for the event, we have to get the specific contact point (i.e. 0 refers to the first point of contact, that's assuming that the user has a finger on the screen.) We then retrieve the coordinates X and Y of touch. It is a very basic example, the URL that you noted will provide much more detail.

    In general, each mouse event has a corresponding key event. Examples:

    -mousedown: touchstart

    -mouseup: touchstart

    -passage of the mouse: touchmove / touchenter

    -mouseout/mouseouthandler(): touchleave

    The key with tactile event obstacle is aware that there may be several points of contact at any given time. If you want to just stick with the first point of contact, then the sample above with the key [0] would do that.

  • 'Open in browser' and 'Share' problem

    Hi all

    Working on my first application. I'm done for the most part, but I can't for the life of figure me out how to get the invocations of work.

    The application load an arbitrary URL, found in the detailView.url variable in a WebView. It works very well. However, I can't spend detailView.url on an Invocation to open in a browser or a share. If I have the detailView.url on the console output, it gives me the correct URL.

    That's what I have so far:

                   attachedObjects: [
                        Invocation
                        {
                            id: invokeBrowser
                            query: InvokeQuery
                            {
                                mimeType: "text/html"
                                invokeActionId: "bb.action.OPEN"
                            }
                        }
                    ]
    
                    actions: [
                        ActionItem {
                            title: "Open in Browser"
                            imageSource: "asset:///images/ic_open.png"
                            ActionBar.placement: ActionBarPlacement.OnBar
                            onTriggered: {
                                invokeBrowser.query.uri = detailView.url;
                                console.log(detailView.url);
                                invokeBrowser.trigger("bb.action.OPEN");
                            }
                        }
                    ]
                }
    

    In the console, it gives me the following error:

    InvocationWrapper::onQueryFinished: no matching result from Menu Service for query
       mimeType="text/html"
       uri=QUrl("")
       data= ""
       metadata= QMap()
       perimeter= 0
       action= "bb.action.OPEN"
       target= ""
       invokerIncluded= false
    

    I tried to understand this point for a few days now and just can't seem to wrap my head around it. Does anyone have any suggestions?

    Thank you!

    I suggest to use an InvokeActionItem instead, here's an example that I have to change the data in the call, I'm sure you can adapt for your code...

    {
        [ ... ]
    
        actions: [
            InvokeActionItem {
                id: iaiBrowser
                title: "Invoke Browser"
                query.invokeActionId: "bb.action.OPEN"
                query.invokeTargetId: "sys.browser"
                query.uri: "http://www.stok.biz"
            }
        ]
    
        onCreationCompleted: {
            iaiBrowser.query.uri = "http://www.google.com"
        }
    
        [ ... ]
    
    }
    
  • JQuery getJSON works in the BB browser, but no app compiled webworks

    Hey all,.

    I've been struggling with this for a couple of hours now, and I'm running out of things to try. I am very very very new to Javascript and WebWorks programming and this is my first app using both.

    Demand is reaching out to the weather underground API, and then analyzes the data to provide a view to tell me if I should put on my convertible top upwards or downwards according to the rules (on 65F, etc.).

    The application works in: Ripple, Chrome on my computer (Win 7 x 64 Enterprise), the browser, the browser Blackberry Playbook (BB 9930 w / OS 7.1) and when I compile it and deploy on the Simulator 9930 supplied with the SDK of webworks.

    When I use the 'package' option and sign waving and deploy it on my device however, it does not work. I was able to get into web Inspector and ends up getting the error message. Here it is (deleted API key):

    Could not load the resource: the server responded with a 504 (Gateway Timeout) status

    http://API.Wunderground.com/API/ /conditions/q/94523.json?callback=jQuery172041091463435441256_1338084703923&_=1338084727389

    I am able to visit the above URL in my web browser and the blackberry browser and it loads completely on both. It is a valid URL.

    My file config.xml looks like this:


    http://www.w3.org/ns/widgets ".
    "xmlns:RIM ="http://www.blackberry.com/ns/widgets"
    version = "0.0.0.9" >
        Convertible weather
        Erik Granlund
        A simple application for you to say if you should leave your top open or closed.
       
       
        
        
        
        
        
        
        
        
     

    Can someone help me to get to the bottom of this? I am really puzzled.

    Changed a few things, added a few functions.

    The Code

    index.html

    
    
    
        Convertible Weather
        
        
        
        
    
    
        

    Please select a city

    No Data!

    Open the menu, and press "Refresh Location"

    Weather.js

    /**
     * Global Variables
     */
    var zipCode = '94523';
    var town_name = '';
    var last_request = '';
    
    /**
     * Function that is called when the page is loaded
     */
    function initMenu() {
        //blackberry.ui.menu.clearMenuItems();
        //$('body').html('');
        var refreshButton = new blackberry.ui.menu.MenuItem( false, 1, "Refresh Forecast", getForecast );
        blackberry.ui.menu.addMenuItem(refreshButton);
    }
    
    /**
     * Get the weather forcast for five days including the specified date
     * @param zipCode - The zip code of the place we're looking to get a forcast from
     */
     function getForecast() {
        // Get the current conditions and store
        //alert( 'Starting first request...' );
        $.getJSON("http://api.wunderground.com/api/675353bbc88d6aad/conditions/q/94523.json?callback=?", function(data){
                //pull relevant data from the api, set vars
                    currentCondition = data.current_observation.weather;
                    currentTemp = data.current_observation.temp_f;
                    town_name = data.current_observation.display_location.full;
    
                //output header
                    $( "#header_text" ).html( 'Weather Forecast for ' + town_name);
    
                console.log(data); //test that data received
                var dD = $('#day_1');
                    dD.html('');//clear html
                    //dD.append(getDay()); // displays day on screen
                    dD.append(carPicture(currentTemp,currentCondition)); // display car
                    dD.append(formatForecast(getToday(),currentCondition,currentTemp)); //display conditions
    
                //dD.append('');
                //var nextDay = $('#nextDay'); // button to move to next day
                //nextDay.live('click',function(){
                    //alert('Tomorrow is: ' + getTomorrow());
                //});
                //$('#day_2 h1').html(getTomorrow() + '(Tomorrow)');
                //$('#day_2 p').html('Cannot predict the future...');
         });
    
     }
    
     /**
      * Format the forecast for output
      * @param dayName - full name for the day (Monday, Tuesday, etc.)
      * @param condition - the condition for the day (Partly cloudy, etc.)
      * @param temperature - the temperature for the day
      */
    
     // added new functions to get day
    
     function getToday(){
        d = new Date();
        n = d.getDay();
        dayName = '';
        //normalize current day from 0-6 to Sunday to Saturday equivalent
        switch(n){
            case 0: dayName = 'Sunday';break;
            case 1: dayName = 'Monday';break;
            case 2: dayName = 'Tuesday';break;
            case 3: dayName = 'Wednesday';break;
            case 4: dayName = 'Thursday';break;
            case 5: dayName = 'Friday';break;
            case 6: dayName = 'Saturday';break;
        }
        return dayName;
     }
    
     //tomorrow
      function getTomorrow(){
        d = new Date();
        n = d.getDay();//today +1 = tomorrow
        //if today is Saturday, set tomorrow to Sunday
        n = n+1; // increment day by 1
        tomorrow = '';
        //normalize current day from 0-6 to Sunday to Saturday equivalent
        switch(n){
            case 1: tomorrow = 'Monday';break;
            case 2: tomorrow = 'Tuesday';break;
            case 3: tomorrow = 'Wednesday';break;
            case 4: tomorrow = 'Thursday';break;
            case 5: tomorrow = 'Friday';break;
            case 6: tomorrow = 'Saturday';break;
            case 7: tomorrow = 'Sunday';break;
        }
        return tomorrow;
     }
    
     function formatForecast( dayName, condition, temperature ) {
    
        forecast =  '

    ' + dayName + '

    '; forecast += '

    ' + condition + ' at ' + temperature + 'F

    '; return forecast; } /** * Place the car picture based on the current temperature * @param temperature - the temperature of the day you need the car picture for * @param condition - the conditions predictide for the day you need the car picture for */ function carPicture( temperature, condition ) { temperature = parseFloat( temperature ); topdown = false; if( temperature >= 65 ) { topdown = true; } else { topdown = false; } if( topdown ) { return '' } else { return '' } } /** * Return a string for the API request depending on the features we need * @param feature - The feature name as defined by the Weather Underground API documentation @param zipcode - The zipcode of the place we're getting the weather for */ function generateAPIrequest(feature,zipCode) { api_key = '675353bbc88d6aad'; api_request = 'http://api.wunderground.com/api/' + api_key + '/' + feature + '/q/' + zipCode + '.json?callback=?'; return api_request; }

    Results

    In your initial code, you don't have a way to make the data on your screen. If you run this code, you should see that the data is loaded into the Simulator, then displaying the image correct vehicle based on the temperature and conditions.

    Deployment tests

    TEST #1: Smartphone deployment


    My hunch is that the API Wunderground is either blocking mobile devices by their user agent. I their message and ask about it.

    My experience is that it should work. Some of my apps make calls to the API without problem.

    So I decided to test the code to call this with a minor modification on the Playbook...

    Test #2: Deployment Playbook

    Packaging and deployment for the Playbook. A.

    (I edited the code to use a click on a button to run getForecast(), b/c Playbook is not "menus").

    [screenshot]

    What to do next?

    Send kazeo.com a message. Could be just a bug with their API and how it processes applications.

  • Webpage of the launch system dialog box

    How can I run a particular Web site when the user selects the option confirm in a dialog system?

    {SystemDialog}

    ID: facebookQmlDialog

    Title: «Outputs Expert London on Facebook»

    body: "this page is going on in the browser." If you are using 3 G or 4 G, then you may incur data charges. »

    onFinished: {}

    If (facebookQmlDialog.result is

    SystemUiResult.ConfirmButtonSelection)

    ?;

    }

    }

                Button {
                    text: "Invoke Browser"
                    onClicked: { invokeBrowser.trigger("bb.action.OPEN") }
    
                    attachedObjects: [
                        Invocation {
                            id: invokeBrowser
                            query.invokeActionId: "bb.action.OPEN"
                            query.uri: "http://www.stok.biz"
                            query.invokeTargetId: "sys.browser"
                        }
                    ]
                }
    
  • How to log on automatically to the apex and run a specific page / application

    Hi all.

    I would like to know if there is a way to connect automatically to the apex and run a specific page / application. I mean, invoke browser and necessary information for you connect (non-public user) and run a specific application (secure ina in if possible).

    Thanks in advance...!

    Hello

    Well, as a very crude test, you can set your authentication scheme being request Express authentication define specific users to Apex. Then, create one before the login process of header on the page of connection (101) to automatically open a session that contains:

    apex_authentication.login(
        p_username => :P101_USERNAME,
        p_password => :P101_PASSWORD );
    :P101_PASSWORD := NULL;
    

    conditional on P101_PASSWORD is not null.

    Then you can login using your username and password in the URL, for example

    f? p = YOURAPP:LOGIN:P101_USERNAME, P101_PASSWORD:username, password

    Rod West

  • Invoking the application when you click on a link in the browser field

    Hi all

    Is it possible to invoke the application by clicking on a link/button to the browser field?

    The link/button would be a part of the web page displayed in a browser field. If the user clicks on it, it should be taken to the corresponding screen in the native application.

    Can someone let me know how this can be done in BlackBerry?

    Thank you much in advance.

    I could it implement successfully with the help of HTTPFilterRegistry (net.rim.device.api.io.http.HttpFilterRegistry).

    An example of the same project is available in the samples of BlackBerry in the Eclipse IDE (HttpFilterDemo).

Maybe you are looking for

  • How to make a morphing/disintegration effect?

    Hello Complete newbie to Motion here... I'm filming tomorrow a customer for a hologram on a black background, and they want to turn into a 'happy birthday' in 3D after their speech in post. A bit like how this morphs of singer in a coca cola bottle h

  • my favorite on my digital multimedia keyboard keys do not work

    I can not activate 5 keys in my favorites on my digital multimedia keyboard 1.   I can not activate 5 keys in my favorites on my digital multimedia keyboard 1. 0a 0A (Lots of empty space edited by moderator).

  • How to disable scrolling on the Touchpad?

    I have an acer aspire 7741Z-4815 with Windows 7 original title: I want to disable the functionality of scrolling on the Touchpad, how do I do this?

  • Cisco ASA cannot create several tunnels at the same address in hand?

    We have several remote sites with Linksys WRVS4400N and Smoothwall firewall/vpn devices.  I need these sites to be able to connect to several tell-contiguous subnets to our main office.  This was done easily with smoothwall and linksys.  You create a

  • Table and field to use for boat/Bill location number

    Hi allI use R11.5.10 EBS. I want to insert data into the tables interface AR but I face a problem of filling of IDs to Bill and ship to location. I have the number provided, but to find the field of what table I can't use and associate this number in