Private opens in the Simulator, but not on the device

Hello world

I have a BlackBerry Tour 9630 (4.7.1.61). I'm running the 4.7.0 Simulator in Eclipse.

Does anyone know why my application would open up a private in the Simulator without problem, but the browser does not open on my real device? I get no error on the device, it just goes to the next screen. I confirmed that the internet works on the device, and I don't see why use only the type of browser BIS would be a problem (I also tried BES).

Here is my code:

UiApplication.getUiApplication().invokeLater(new Runnable() {
    public void run() {

    BrowserSession session = BrowserLocator
        .createBrowserSession(BrowserLocator.BROWSER_TYPE_BIS);
            if (session != null) {
                session.displayPage(loginUrl);
            }

    AuthorizeScreen authorizeScreen = new AuthorizeScreen();
    UiApplication.getUiApplication().pushScreen(authorizeScreen);
    UiApplication.getUiApplication().popScreen(OAuthScreen.this);
    }
});

Thank you!

Thanks for your help.

The session was to return null. I was able to reproduce this behavior in the simulator using a different type of browser not supported by the service books. Finally, I removed my own BrowserLocator() class (for the call of a certain browser) and replaced by the BrowserSessionFactory() provided in the JDE samples. I now have the browser on the opening device.

What is the safest Bet, to use the default browser of the device, or use a browser BIS?

Thank you!

Tags: BlackBerry Developers

Similar Questions

  • Rental app run on the Simulator, but not in real device!

    Hello

    I made a simple application using GPSDemo in JDE, I get altitude, longitude, latitude... I tried in the Simulator (9000) and it worked perfectly.

    But when I put it on my BB (bold 9000), I can't get the location information. I've done some tests and I think it's because the location.isValid () return false!

    I checked the settings of the BB and the GPS is activated.

    Do you know what is the problem? And what can be the solution ?

    Thanks for your help and I apologize if my sentences are strange, I'm French and not very versed in English ^^...

    Ok! I found the solution! The problem wasn't my code, it came from the camera. I had update (outdoor) GPS data in the advanced options because it was the first time I tried to use it.

    And now it works perfectly!

    Thank you for all your help

  • What happens if I want to just pictures of my phone stored in icloud, but not my other devices?

    What happens if I want to just pictures of my phone stored in icloud, but not my other devices?

    Hello Lisa,.

    You can get more help if you posted in the forum to iCloud.

  • I am trying to send my photos from my phone to my computer, but not properly installed device driver appears.

    I am trying to send my photos from my phone to my computer, but not properly installed device driver appears.  My question is what should I do to upload my pictures?

    Hello

    What brand / model of the phone?

    You try to connect the phone to the computer wired or wireless?

    Try the methods provided and see if it helps.

    Method 1:
    Check out the link and follow the steps.

    Connect to Bluetooth and other wireless or network devices
    http://Windows.Microsoft.com/en-us/Windows7/connect-to-Bluetooth-and-other-wireless-or-network-devices

    Method 2:
    Check out the link and follow the steps to install the drivers for the device.

    Update drivers: recommended links
    http://Windows.Microsoft.com/en-us/Windows7/update-drivers-recommended-links

    You can also check this link for more information.
     
    Method 3:
    You can also visit this link and follow the steps.
     
    What to do when a device is not installed correctly
     
  • GPS works on the Simulator, but not on phone

    Hello

    I created a simple application that gets the location of the device's GPS. The app works perfectly on the Simulator, but I have no GPS updates on the phone. I've been in options-> device-> Location.Settings on the phone and can see the GPS updates are coming through. But the app says there is no valid received GPS.

    I tried it on BlackBerry 9800... All I get on the phone is 'pending GPS update', that my app is displayed if no valid GPS don't trouble is received.

    Thanks in advance.

    Kevin

    C criteria = newCriteria();

    c.setHorizontalAccuracy (Criteria.NO_REQUIREMENT);

    c.setVerticalAccuracy (Criteria.NO_REQUIREMENT);

    c.setCostAllowed (true);

    c.setPreferredPowerConsumption (Criteria.POWER_USAGE_HIGH);

    LocationProvider lp;

    Try

    {

    LP = LocationProvider.getInstance (c);

    if (lp! = null)

    {

    lp.getLocation (timeout);

    lp.setLocationListener (newMyLocationListener(),-1, 1, 1);

    }

    on the other

    {

    Dialog.Alert ("sorry - your phone does not support GPS");

    }

    }

    catch (Exception e)

    {

    System.

    Err.println (try ());

    }

    }

    private class MyLocationListener implementsLocationListener

    {

    public voidlocationUpdated (LocationProvider provider, a place)

    {

    if (location! = null& location.isValid ())

    {

    QualifiedCoordinates qc = location.getQualifiedCoordinates ();

    Try

    {

    Lat string = Double.toString (qc.getLatitude ());

    String long = Double.toString (qc.getLongitude ());

    UpdateScreen ('place of registration successfully');

    }

    on the other

    {

    UpdateScreen (' Failed to day location ');

    }

    }

    catch (Exception e)

    {

    }

    }

    on the other

    {

    UpdateScreen ("waiting for GPS update");

    }

    }

    public void providerStateChanged (LocationProvider provider, intnewState)

    {

    TODO: If the provider has been disabled, then disable the reporting

    }

    }

    Try the examples of programs that you can find here:

    http://supportforums.BlackBerry.com/T5/Java-development/BBM-shareContent/m-p/1796237#M203486

    or here:

    http://supportforums.BlackBerry.com/T5/Java-development/simple-location-API/Ta-p/1145951

    See if these work on the unit.  If they do, look at the code listed and compare with yours.

  • Can deploy app in the Simulator, but not to the device

    Sorry about this newbie question, but how is it that a simple HelloWorld application compiled in Eclipse runs just fine on the Simulator, but cannot be installed on a 8320 Curve by the Blackberry Desktop Software?

    I use the latest version at all.  The message returned by the desktop software is:

    ! There was an error importing files.
    No additional applications can be found. Your file can
    contain applications that already exist in the list of applications,
    are not compatible for your device, or errors.

    However, I am able to deploy the application on the handset using the command line tool:

    C:\Eclipse\plugins\net.rim.ejde\vmTools\JavaLoader.exe -usb load \workspace\HelloTest\deliverables\Standard\5.0.0\HelloTest.jad
    

    This installs the application, which then runs correctly on the device.  I can then reload the list of app on the Blackberry Desktop Software tool and it shows HelloTest, but under the properties of the Application-> dependencies it says:

    "Application not available (net_rim_cldc).

    It seems that some dependence crept in the generation of the application and that confuses the desktop tool.  The curve is running 4.5 OS.

    Should I just throw this office tool, or how can I clean the application so that it installs correctly?  Obviously, this is just foreplay before building a much broader application, and I wish I had these little glitches will hamper ASASP.

    Thanks for any help!

    You should be able to download a plugin 4.5 on the site to update. Go to "help > install new software" to open the screen of software available. If you have not yet done so, add the updated BlackBerry site to your Eclipse configuration:

    1. Click on "available software Sites.
    2. Click on the button 'Add '.
    3. Enter a name such as 'BlackBerry update location' and set the location http://www.blackberry.com/go/eclipseUpdate/3.5/java
    4. Click OK, then OK again to return to the screen of the software available

    The 'working with' menu drop-down, select the location of BlackBerry Update (or whatever you named it). Expand the BlackBerry Java plug-in category and you should be able to select an appropriate plug-in version.

  • my world event working on the Simulator, but not on the device

    Hi guys,.

    I'm using BB bold 9000. I have attached directly to the device and debugging. I'm getting "background switch detected for myapp (261) that does NOT have the tunnels open - defocus is NOT called" on the device debugging. but it works fine on the Simulator (my ultimate task is slaughtering an application from another application) any idea?

    Thank you

    Thank you guys, it's worked.

  • Firefox opens HTM page locally, but not on the internet

    Hello
    Firefox is open my HTM homepage (not HTML!) stored on a local server at home when I access from the intranet, but it will not open on the internet (accessible via a ddns server), it just goes to show the HTML code as text rather than the analysis of what the HTML page.
    The same page will open on the internet normally with Chrome or IE.
    Please suggest how to solve the problem.

    I don't want to publish here the address of my web page, but if necessary, I could send it to a secure address, or I can share the code on github.

    Thank you in advance.
    Steve

    Thanks for the advice, it was missing some header information, this caused Firefox don't not to analyze the HTML tags.
    Curiously, the same page with the same missing header information made correctly (with HTML tags) on a PC at home in the intranet.
    Anyway, thanks again for your support.

  • image in SVG shows it on the Simulator, but not on the device

    Hi all

    I put theelement in an SVG file with an image that I pick up store or the SD card. I can see the image set on the Simulator, but am not able to see it on the device.

    Here is the code snippet I definition of the element in the image:

    SVGElement "newelement" = (SVGElement) _document.createElementNS (SVG_NAMESPACE_URI, "image");
    newElement.setTraitNS (XLINK_NAMESPACE_URI, "href", dittos);
    newElement.setFloatTrait ("x", 0);
    newElement.setFloatTrait ("y", 0);
    newElement.setFloatTrait ("width", Display.getWidth ());
    newElement.setFloatTrait ("height", Display.getHeight ());
    _svg. AppendChild (newelement);
    Invalidate();

    Thanks in advance.

    ~ Shri

    It was with the size of the Image. Too big a picture and the device wont set it to SVG canvas.

    If the scale down the image and set the image if you want to set asin SVG.

  • Event Swipe works in the Simulator, but not on the device

    I'm using panels on my 9900 and I have 4 panels that the user will slide back and forth similar functioning BB app world, changing the summary of comments on signs etc..

    My expection who was up and down for scanning of touch screen functions and the touchpad has the same function by default, that is to the left and right slide on the screen should also be identical to forehand and left on the block to tack. But it does nothing for the panels when you use the trackpad.

    So I replace NavigationMovement and and can see the touchscreen and the track pad to generate a NavigationMovement event with +/-x according to the direction slide. So I'm first puzzled why hit swiping the trackpad on the left and right triggers not the same behavior by hitting swiping left and right on the touch screen.

    Accept that as a limitation of the API, I added my own features to NavigationMovement to inject a key event when user left or right on the trackpad moves. As follows:

    EventInjector.TouchEvent [] moveEvents = new EventInjector.TouchEvent [7];

    moveEvents [0] = new EventInjector.TouchEvent (TouchEvent.MOVE, 420, -1, -1, 60-1);
    moveEvents [1] = new EventInjector.TouchEvent (TouchEvent.MOVE, 360, 60,-1, -1, -1);
    moveEvents [2] = new EventInjector.TouchEvent (TouchEvent.MOVE, 300, 60,-1, -1, -1);
    moveEvents [3] = new EventInjector.TouchEvent (TouchEvent.MOVE, 240, 60,-1, -1, -1);
    moveEvents [4] = new EventInjector.TouchEvent (TouchEvent.MOVE, 180, 60,-1, -1, -1);
    moveEvents [5] = new EventInjector.TouchEvent (TouchEvent.MOVE, 120, 60,-1, -1, -1);
    moveEvents [6] = new EventInjector.TouchEvent (TouchEvent.MOVE, 60, 60,-1, -1, -1);
    EventInjector.TouchEvent.injectSwipeGesture (480, 60, moveEvents);

    It works perfectly in the Simulator, but on the device, there is no movement at all. So I thought that maybe the touchpad on the Simulator is more sensitive than on the real device, so I added a menu item to perform the injection above. Again, this works perfectly on the Simulator, but nothing on the device.

    Has anyone tried this brain left and just before the injection?  Up and down the injection works perfectly on the device.

    Have you enabled event injection in request permission settings for your application?  It is disabled by default.  You can do so by going to Options-> Application, select your application and click on change permissions.  You can also request these permissions programmatically using the class ApplicationPermission.

  • The following HTTP requests fail in the Simulator, but not on the device (4.2.1)

    Anyone had this problem before?  I do a HTTP request and then according to the return add another to my queue and the other repeatedly fails on the Simulator.  However, I tried to run on the device and everything worked perfectly.  I know this is a pretty vague description, but I was wondering if there was any problem known about.  He could make debugging in the simulator that is very difficult in the future.

    marchywka, I think it has something to do with the WiFi in the Simulator.  It works the first time, but in certain circumstances later fail.

    I couldn't understand it, but I decided to not use WiFi when it is the Simulator and use WiFi on the device.

  • App works on the Simulator, but not on the device

    Just try to run the helloworlddemo app compiles fine and works on the Simulator without problem. All I get on the device is an icon of the application that does nothing when clicked.

    I had read this might have to do with the version of the JDE is high for the operating system on the device, but I'm running JDE 6.0.0.37 and the operating system on the device is 6.0.0.666

    I tried with my own app first, compiled, signed it and get the same result as helloworld, then its certainly some mounted sort of question but I have no idea of what

    Thank you

    Sheldon

    Thought of it - was to set the permission of application so that all 3 items were "allow."

  • Work of Auditors in the Simulator but not actually "BOLD"

    Hey - if anyone knows how to get a "BOLD" handset to allow listeners (PhoneListener, KeyListener, OutboundMessageListener) I would appreciate it. My app uses listeners and works very well in the Simulator, but only sporadically on the actual handset. Does anyone know how it works?

    See you soon,.

    Justin Dutoit

    I think you need to post a snippet of a listener of non-working, if you want to help more with this.

  • I just bought a new Airport Express Terminal. It connects to my laptop, but not my other devices such as iphone/ipad. Any suggestions?

    I just bought a new Airport Express Terminal. It connects to my laptop and I have working internet, but my iphone/ipad do not work with it. They say they are "connected" to the wireless network but nothing works / charges on other devices. I tried to forget the network, by renewing the lease, etc and nothing works. Any suggestions as to why my laptop works but not other devices?

    What is the serial number and model of the modem you use?... or... The AirPort Express connects directly to the Ethernet wall port?

  • I can authenticate 2FA via SMS message, but not using iOS device.

    Codes using 4-digit SMS works well, but not if I choose another option to use an iOS device, I get no messages this way. I have iPhone 6 more, but if I lost my iPhone and had an iPad, I wouldn't have no way to receive the two factor code.

    You turn on the new authentication to older two factors or two steps checking?

    Here's how you can make a difference:

    Two-factor authentication can be turn on only using parameters of iCloud on iOS devices running iOS 9 or Mac OS X running El Capitan (10.11) or later.

    Two-step verification can only be enabled when you go to the web page of my Apple ID.

    If you receive only codes by SMS, then my guess is that you are using the older two-step verification.

    First be sure that you are connected to iCloud on your iPhone and iPad using the same account that you are using for the two-step verification.

    Then, make sure you have find my activation of the iPhone on your iPhone and my iPad to find on your iPad. You will find the switch in iCloud decoration on both devices.

    Then, connect to your Apple ID account on the web page of my Apple ID. From there, you will need to check each device you want to receive codes by sending a verification code to each device.

Maybe you are looking for