Call the Web browser program compiles in 4.2 and upward but not 4.1

I wrote a very simple application that when launched, opens the browser and takes you to a predefined binding. The following code compiles and works very well on the 4.2 and upward, but I can't seem to compile in the jde 4.1:

package vwr;

import net.rim.blackberry.api.browser.Browser;
import net.rim.blackberry.api.browser.BrowserSession;
import net.rim.device.api.ui.UiApplication;

public class vwr extends UiApplication {
public static void main(String[] args){
vwr instance = new vwr();
instance.enterEventDispatcher();
}

public vwr() {
BrowserSession site = Browser.getDefaultSession();
site.displayPage("http://www.google.com");
site.showBrowser();
System.exit(0);
}
}

When I compile 4.1, I get an error related to the site.showBrowser (); command. But as I mentioned, the above code compiles and works fine on OS 4.2 and above. Is there a simple solution for this?

Thank you in advance.

Nevermind, I found a solution that works. Here's the code. I hope that someone else will find useful.

import net.rim.blackberry.api.browser.Browser;
import net.rim.blackberry.api.browser.BrowserSession;
import net.rim.device.api.ui.UiApplication;

public class vwr extends UiApplication {
public static void main(String[] args) {
     vwr instance = new vwr();
     instance.enterEventDispatcher();
  }

public vwr() {
    BrowserSession site = Browser.getDefaultSession();
    site.displayPage("www.google.com");
    System.exit(0);
  }
}

Tags: BlackBerry Developers

Similar Questions

  • AcrobatX worked well both printing and scanning when harwired to my computer. I went wireless and Windows programs work well both printing and scanning, but not Acrobat.

    Using Windows7 - I tried Windows10 but restored to 7.

    AcrobatX worked well both printing and scanning when connected to my computer. I went wireless and Windows programs work well both printing and scanning, but not Acrobat. In Acrobat, we don't get the scanner and printer prints in a .prn e-file, not to the printer.

    Help please...

    OK - I'VE CORRECTED THE PRINTER WHICH HAS BEEN INEXPLICBLY THE 'PRINT TO FILE' VALUE, BUT THE SCANNER IS STILL MISSING.

  • When they surf on the web as an administrator, Firefox remembers usernames and password, but when words I surfed as a standard user, it doesn't.

    Before Firefox updated to 6, my user ID and passwords that I had saved, or ask the site to remember was always available. If I close the browser and later began a new session, my ID's were still on the Web site when I went to them. After yesterday, 31/08/2011, updated at 6, when I close the browser after a session, usernames and passwords are gone and must be re-entered. This only happens when I sail as a "standard" user If I surf the web as administrator, all my saved info is still there.

    No worries; Type "subject: config" into your address bar, and you should get an alert guarantee invalidated. I leave the checkmark in the box for warn me next time.

    After you click "I'll be careful", Firefox shows you multiple options, I'm guessing around 1500. Entering 'form' in the filter will only display options containing this string. Options I searched automatically deal with remembering the info you repeatedly enter in web forms.

    Some changes require a reboot, and I'm not hip to that. At least in this case, you will still restart to see if it worked.

    It is also critical that navigating the Windows registry, but the same kind of precautions apply; You can seriously break your stuff here. Just like Windows and the registry, a clean reinstall can fix everything you break here, but it's always a concern that you would avoid instead. Be careful and patient.

    Take notes, which you change the value, so you can change back - right click to copy the name of the option, its value or both, thus facilitating a list of notebook. Remember that you may need to change a couple.

    I am not sure that these options can relieve your frustrations, but this is my last idea in addition to a clean reinstall of Firefox.

  • My Web page works fine in Dreamweaver/Firefox and Safari but not will not work correctly in Internet Explorer. Help please

    Hello

    I downloaded my page from Dreamweaver yesterday and it works fine in Firefox and Safari, but when I open it on Internet explore, background tables have moved and the image links above have a white boarder around.

    Web page link: http://www.GS-designproject.co.UK/home.html

    any help much appreciated.

    Thank you

    GAV

    The white edges around your images are created as they are integrated into the links. Add the following to your stylesheet:

    an img {}

    border: none;

    }

    The problem with the line of the table at the bottom reads:

    colspan = "760px" height = "40" valign "middle"="" >

    The colspan attribute takes the number of columns that you are stretching on, not a number of pixels. Judging by the rest of the table, to colspan = "7".

  • The GPU acceleration is grayed out in first and AE, but not in Media Encoder. However, the rendering is slow in all 3 programs.

    It worked fine in CS6.

    Now, whenever I open a project (Pr or Ae) I get the message: this project has been modified used with accelerated by GPU rendering. This happens with all projects, even with those that I created in the Pr/Ae CC, with already disabled accelerated by GPU rendering.

    In Media Encoder, the GPU acceleration is not grayed out, but still if I made a first sequence or model ae via ME, its very very slow. (takes 5 hours for a video that took 20 minutes in CS6)

    Any thoughts?

    Thank you, Daniel

    I didn't have the time to post it yesterday, but you have found similar work around. What is happening is the decoding of earlier projects, or projects of the same version even sometimes won't boot the MPE of hardware engine. These files are cached and won't clear for this sequence until you delete the cache. 1 way to do is to replace the clips. The easiest is in the future change the EMT of the material to the MPE software and select delete the files from the cache when it invites. Then return to the MPE material and clear the cache again. That recreates the decoded files cache that often solves this problem.

    Eric

    ADK

  • I have published my muse built Business Catalyst site and all from the 'Site in the web browser view' function in the program of the Muse does not work. Screen comes up with a message that it cannot locate the page and suggests I check the ip address.

    I recently published my muse built the Business Catalyst site for preview and all from the 'Site in the web browser view' function in the program of the Muse does not work. Screen comes up with a message that it cannot locate the page and suggests I check the ip address.

    Hello Jimw93000314,

    Are you preview site in the edge browser? When you preview the page in the browser Muse create a local server to give you the preview in the browser. With the edge browser, there was a reported issue to access the local server.

    Please click the link below that shows the steps to enable the browser to edge.

    http://StackOverflow.com/questions/30334289/cant-open-localhost-in-Microsoft-edge-project-spartiate-dans-Windows-10-APER cu

    I'm sure this will help.

    Kind regards

    Vivek

  • How can I increase the size of the police on request or the web browser?

    Everything I print (Word or the web) fate of the tiny print... I read the post that says that the font size is controlled by printing application or program and increase the font size on the web browser or application.    How do I do that?

    You talk to a novice here... guess you knew about this right?

    Hi susan911,

    I don't know that you're a novice, because you told me.

    You are enough common sense to have navigated your way to the HP Forums! Change font size in IE can indeed be a difficult task. In Internet Explorer, click on tools, select Internet options, on the general tab, click Accessibility, click in the box next to ignore font sizes specified on Web pages and click OK, then click OK again. Now you can click view, select text size and choose a suitable text size.

    I know that Windows 8 can be overwhelming, here's a great site for tutorials for Windows 8.1 initiation

    You may already be familiar with most of the information here, but maybe you will find something useful!

  • I'm unable to access the web browser on your laptop. BT infinity focus.

    My daughter is unable to use any type of web browser on your laptop without loading webpages slowly or not at all timeout. Internet connection is fine as programs, such as Spotify, are still working as usual, but browsers often give the message "server sent no data."

    Hello

    (1) did you make any changes before the show?

    (2) you receive an error message?

    (3) what happens when you try to access the Web sites?

    How to optimize Internet Explorer

    http://support.Microsoft.com/kb/936213/no

    Note: The feature reset the Internet Explorer settings can reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before you use the reset Internet Explorer settings.

    Internet Explorer slow?

    http://Windows.Microsoft.com/en-us/Windows/help/Internet-Explorer/slow-five-tips-to-boost-performance

    It will be useful.

  • Saving files to the Web browser

    I do a plugin for windows which will save the files locally from PDF files open in the web browser.

    I use the code to save my files below

    PDDocSave (pdDoc, PDSaveForceIncremental, ASPathFromPlatformPath)

    char *) lszValueDocPath), ASGetDefaultFileSys(), NULL, NULL);

    here

    (1) pdDoc is a PDF file open in browse

    (2) lszValueDocPath is the path of the local system

    The problems that I face are as below

    (1) the code works fine on XP and Vista (UAC off) and it does not work when UAC is enabled

    (2) the browser in which PDF file opens, as IE or Firefox hangs after save the file.

    I'll appriciate help as much.

    Thanks in advance.

    You have a lot of questions here...

    (1) you must build the ASPathname elsewhere and NOT online.  You must check for errors (in which case it fails) AND you need to release it after you're done with it.  In addition, you can consider using other methods to do this, since your method will not work for Unicode-based files names.

    2) entry from the local file system browser, you do NOT want an incremental save - evolving to save the simple changes on an existing file, NOT the path to another (aka Save vs. Save As).

    (3) UAC is a property of the OS which is designed to prevent EXACTLY what you are trying to do - move local web content without authorization of the user.  You must obtain the permission of the user (via the appropriate OS calls) in order to elevate permissions to allow this.

    Difficulty of these things and you shouldn't have a fall.

  • problem with opening pdf file of the web browser

    I have Acrobat Pro ver 6 and Adobe Reader 9.1 on a computer.  When my user tries to open a pdf file from the web as it gets the following error message:

    "Adobe Acrobat/Reader that not running to view the PDF files in a WEb browser.  ADBE Acrobat/Reader version 8 or 9 is required.  Quit and try again. »

    What also happens is that Acrobat Pro 6 worm opens and nothing is there.

    I don't know why he received this message from Reader 9.1 is installed.

    One can shed some light on this for me.

    This user must have Acrobat and Reader on its system.  I understand that there are problems with having both.

    It has also set up so that any PDF opens using Reader 9.1.

    Thank you

    Configuration of your PC drive by default for embedded PDFs has become confused, because of multiple solutions of Adobe PDF documents installed on a PC.

    Solution 1:

    Go to start > run

    Type regedit, and then click OK.

    Navigate to the following key: HKEY_CLASSES_ROOT\Software\Adobe\Acrobat\Exe

    Make sure that the correct default data value is set to the path where are installed the Adobe Reader or Acrobat.

    The default installation values are:

    "C:\Program 9.0\Reader\AcroRd32.exe Adobe.

    or

    "C:\Program Files\adobe\acrobat 6.0\acrobat\Acrobat.exe" (not sure of this path.  Make sure that on your PC)

    If Adobe Reader or Adobe Acrobat is installed.

    Solution 2:

    Configure the browser to use Acrobat or Adobe Reader as a helper application.

    If you use Firefox to browse the web, you can change this setting in Firefox by clicking on:

    Tools > Options

    Click on the "Applications" tab

    The first item in the list should be "Adobe Acrobat Document".  In the Action list, click the drop-down arrow and select the application you want to read a PDF file in the web browser.  Click OK and you should be done.

    If you use Internet Explorer to view a PDF file, try the steps below.

    After you configure Acrobat or Adobe Reader as a helper application, the browser starts the helper application in a separate window and displays PDF files within this window. Acrobat and Adobe Reader both include a preference that allows you to specify the Acrobat or Adobe Reader as a helper application.

    To configure Acrobat or Adobe Reader as a helper application:
    Start Acrobat or Adobe Reader.
    Choose Edition > Preferences.
    Select Internet on the left.
    Deselect Display PDF in browser using [Acrobat application], and then click OK.
    Quit Acrobat or Adobe Reader.
    The next time you select a link to a PDF file in the browser, a dialog box asking what you want to do with the file. If you select open, the browser opens the PDF file in Acrobat or Adobe Reader (request for assistance); If you select save it on the disk, the browser saves the PDF file on your hard drive.

  • What are the KEYstroke (s) used to CLOSE the current tab in the web browser?

    What are the KEYstroke (s) used to CLOSE the current tab in the web browser? I hesitate to use a mouse where can I use sequences of keys, as the mouse is a much slower process. Indeed, to find a list of all the main features that can be used in Firefox, for example ALT + S, followed by R (or several times) and the ENTRANCE used to restore the last browsing session; or CTRL + F to search for a specific word or term? Thank you.

    CTRL + W closes a tab at a time. It also closes a window if there is only one tab open in this browser.

  • leave the Web browser on the bdp-s580

    How to quit the Web browser on the bdp-s580? I can't find a button that closes the browser, so I have to turn off and on? What Miss me?

    Answered my own question - it's the HOME button that will exit the browser.

  • Application of preloaded Touchpad that came preloaded on the web browser bookmark

    I accidentally clicked on "Clear bookmarks" in the Web browser.  Could someone please provide me with the URL to the bookmark of the Touchpad that came preloaded on the browser?  Thank you!

    http://www.hpwebos.com/touchpadwifi-support

    www.Google.com

    www.Yahoo.com

  • How to call the web service?

    Hello

    I want to know how to call the web service from my application HTML5 & javascript.

    Please help me find this detail as what I can access easily. and I want to access web services online (a method of it) I'm not concered with how background Web service takes place.

    I just want that when you call a web service method, I will return the result.

    Please try this out for a WebService call

    var xmlhttp;
    xmlhttp = new XMLHttpRequest();
    xmlhttp.open("get","your url",true);
    xmlhttp.setRequestHeader("Accept","application/json");
    xmlhttp.setRequestHeader("Content-type", "application/json");
    xmlhttp.onreadystatechange=function() {
     if (xmlhttp.readyState==4) {
      if (xmlhttp.status == 200) {
        console.log(xmlhttp.responseText);
      }
     }
    }
    xmlhttp.send();
    

    This will display the result of the invocation of webservice. The url is the application that you deploy and the type can be get/post. If xmlhttp.send (post) takes argument for the display of the data. You can call it by clicking a button in HTML.

  • Open the web browser from within an application

    Hey guys,.

    I'm in trouble here to have a button click to open the web browser and navigate to the url that is predetermined by the click of a button.  Basically, I have several pages representing different information and a deeper information button that I want to open the browser and navigate to the Web site related to these data.  I have the written code and I thought it would work, but at all, nothing happens when the button is clicked.  Any ideas?  Thank you very much in advance!  Here is my code:

    You don't have to use the browser to open app world. See this thread:

    http://supportforums.BlackBerry.com/T5/Tablet-OS-SDK-for-Adobe-Air/HOWTO-invoke-app-world/m-p/111385...

Maybe you are looking for

  • contacts after El Capitan

    When I click My Contacts icon, it displays Contacts no.. When I go to System Preferences > users and groups, and then clicking on the 'Open' button of the plug Contact, all my contacts show. How can I access my contacts through the Contacts icon on m

  • "There is no end point for the end point mapper.

    Summary of the issueOther issues of Windows Live family safety What version of Windows Live Family Safety do you use? Version 2011 (15.4.3538.513) Choose your operating system version: Windows 7 Additional detailsWhenever I have try and configure the

  • How [Prnt Scrn]

    How can I do a [print SCREEN] with Windows Vista Home Premium? I tried the Print Screen key, the Alr Prt Scn and Cntl Prnt Scn.  Nothing works.  Does anyone know how to do this?

  • Problem: GetUsersDetailRequest in the method of users. : NET

    Hello I want to get all users in detail GetUsersDetailRequest. Like, I have to get all the users first in order to get the answer. GetUsersDetailRequest request = new GetUsersDetailRequest(); Request.Metadata = metadata; Users [] = request.users; I w

  • Add a variable along the withQNetworkRequest

    Hello Is it possible to add a variable with the QNetworkRequest and receive this variable with the QNetworkResponse? Please help me