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+'\');

Tags: BlackBerry Developers

Similar Questions

  • 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

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

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

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

  • '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"
        }
    
        [ ... ]
    
    }
    
  • 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).

  • BlackBerry SmartPhone App Submission - invoking the browser

    Hello

    Is it possible to submit an app in the BlackBerry App World which simply called the BlackBerry browser with a link to my mobile site? Are there disadvantages to this approach? I am very grateful for a quick response because I need an immediate response. Thank you

    (a) I suspect that this will help.

    http://supportforums.BlackBerry.com/T5/Java-development/invoke-the-browser/Ta-p/445362

    (b) I think I have already answered this question.

  • Problem with the link invoke BrowserField real browser

    I use Custom BrowserField view code html, but when to take the cursor over a link and press on, the menu open the link will display. After clicking, nothing happens.

    I know that to invoke the current browser. Need to uselike

    public Object eventOccurred (Event event) {}

    int eventId = event.getUID ();

    switch (eventId) {}

    case Event.EVENT_URL_REQUESTED: {}
                    
    Private visit = Browser.getDefaultSession ();
    visit.displayPage ("url");
    break;
                    
    }


    The problem is how to o the url link on Custom BrowserField be opened by

    visit.displayPage ();

    He found myself

          case Event.EVENT_URL_REQUESTED: {
    
                    BrowserSession visit = Browser.getDefaultSession();
                    UrlRequestedEvent urlRequestedEvent = (UrlRequestedEvent) event;
                    url = urlRequestedEvent.getURL();
                    visit.displayPage(url);
    
                    break;
    
                }
    
  • Invoke the application via a custom protocol URL browser

    With the new breed of OAuth2 API such as Pocket there is now more and more need for apps complement the OAuth2 flow in default browser OS outside the Application. It also means that once the Auth process is complete, there must be a way to invoke app or pass data to browser application via redirect URL.

    Currently it seems achievable on platforms like android by registering a custom for an application URL protocol handler. This way browser can use redirection what custom URL with a Protocol and application would be invoked via redirects and the address bar of the browser.

    I see that current invocation framework supports the URI patterns but I can't make it work, can someone point me to any example of code that allows the invocation of application via browser?

    This sample project should show you what files are used for oauth2 https://github.com/kylefowler/foursquare

  • Invoke a problems of default browser with the code 4.5 session

    Hello, I uses this simple code to create an icon on the desktop, and then point to an internal URL by invoking the browser of BES.

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/796557/800332/800440/...

    This worked great until that code 4.5. Now with Blackberry unit installed on a device 4.5 the default browser to browser unit.

    Any ideas?

    problem solved-

    http://www.BlackBerry.com/BTSC/articles/529/KB15695_f.SAL_Public.html

     

  • path of the file control: invoke file browser activation

    Hello

    on the façade of a vi, I want a file path control automatically opens the file browser window when the user clicks in the control of trajectory. Is it possible to do it programmatically after the mouse down event has been triggered? I couldn't find a method appropriate to date.

    Thanks for any advice,

    Peter

    Hi Peter,.

    Yes, it is possible that you have described. Have you tried it? ;-)

    Mike

Maybe you are looking for

  • ICloud can save new files iPhone only?

    I recently had an iPhone and uploaded photos from all the previous ones of my phone. These files are already saved and I want to stay on the iPhone, because the phone has a lot of memory (I do not need them in iCloud). Now I take new pictures/videos

  • Charger

    Stop USB-charger Apple 5 - watts to load when iphone is full is charged?

  • How to start the new film w/o bundle?

    Hello I'm on a MacBook Pro. I noticed things may work more slowly Gets the biggest of my library. What I want to do, is to reduce what must read my ram. I would like to start a new movie without a bundle. How is that done? Other films allows this fol

  • Reset the printer: what you need to know

    There are a growing number of messages in this forum and elsewhere in the internet with the steps to do a reset on different printers.  Reset to will sometimes fix problems, so resetting is not the issue. A few resets require you to enter key combina

  • Can GarageBand iOS Open GarageBand (Mac) file stored in iCloud

    I created a file garageband on my Mac (capital el) and armed it on my iCloud drive. I would like to have on my iPad, but couldn't find how do. Is it compatible?