BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/)
-   Developer Forum (http://www.blackberryforums.com/developer-forum/)
-   -   Blackberry Browserfield example not launching (http://www.blackberryforums.com/developer-forum/260020-blackberry-browserfield-example-not-launching.html)

tujasiri 06-14-2012 05:36 PM

Blackberry Browserfield example not launching
 
Greetings All,

I'm attempting to run a very simple Blackberry/Java application which implements the BrowserField class. When I launch it in the simulator it just hangs. When I launch it on my device nothing happens.

JRE: 7.0
Simulator: 4.0.0.141


Code:

package mypackage;

  import net.rim.device.api.browser.field2.BrowserField;
  import net.rim.device.api.browser.field2.BrowserFieldConfig;
  import net.rim.device.api.ui.UiApplication;
  import net.rim.device.api.ui.container.MainScreen;

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

 public void BrowserJazz()
 {
    pushScreen(new BrowserFieldDemoScreen());
 }
 }

 class BrowserFieldDemoScreen extends MainScreen
 {
public BrowserFieldDemoScreen()
{
    BrowserFieldConfig myBrowserFieldConfig = new BrowserFieldConfig();




    myBrowserFieldConfig.setProperty(BrowserFieldConfig.NAVIGATION_MODE,
          BrowserFieldConfig.NAVIGATION_MODE_POINTER);

    BrowserField browserField = new BrowserField(myBrowserFieldConfig);

    /*BrowserFieldListener listener = new BrowserFieldListener() {
        public void documentLoaded(BrowserField browserField) throws Exception
        {
            // the document has loaded, do something ...
            Dialog.inform("PAGE LOADED!");
        }
    };*/

    add(browserField);
    //browserField.addListener( listener );

    browserField.requestContent("link to google had to be removed to post");
    //browserField.addListener( listener );

  }
  }

Any ideas?

-TU

Dougsg38p 06-15-2012 07:31 AM

Re: Blackberry Browserfield example not launching
 
What OS level is on the device?

Are you checking the device event log?

tujasiri 06-15-2012 10:16 AM

Re: Blackberry Browserfield example not launching
 
The OS level of the simulator is 7.0, my device is at 6.0.

I was not checking the event log, but I just did. What would I be looking for there?

I see "E Application Error -- ivhs" occurring MANY times...

Dougsg38p 06-15-2012 10:56 AM

Re: Blackberry Browserfield example not launching
 
You cannot compile on 7.0 and deploy on 6.0 - your JDK level has to be <= the OS level of the target.


All times are GMT -5. The time now is 09:25 PM.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.