BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 06-14-2012, 05:36 PM   #1
tujasiri
New Member
 
Join Date: Jun 2012
Model: 9870
PIN: N/A
Carrier: Tmobile
Posts: 3
Red face Blackberry Browserfield example not launching

Please Login to Remove!

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
Offline  
Old 06-15-2012, 07:31 AM   #2
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default Re: Blackberry Browserfield example not launching

What OS level is on the device?

Are you checking the device event log?
Offline  
Old 06-15-2012, 10:16 AM   #3
tujasiri
New Member
 
Join Date: Jun 2012
Model: 9870
PIN: N/A
Carrier: Tmobile
Posts: 3
Default 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...
Offline  
Old 06-15-2012, 10:56 AM   #4
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default 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.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads for: Blackberry Browserfield example not launching
Thread Thread Starter Forum Replies Last Post
HOWTO: Use BlackBerry on Generic NON-BlackBerry Data Plan Mark Rejhon BlackBerry Network 95 05-20-2018 07:58 AM
BES 5.0 Exchange/Domino final documentation posted illy BES Admin Corner 9 05-12-2009 11:16 AM
Perform a cutover to another BlackBerry Enterprise Server in IBM Lotus Domino hdawg BES Admin Corner 3 04-25-2008 09:47 AM
BES 4.1 SP2 for Microsoft Exchange - Now Available jibi BES Admin Corner 51 01-10-2007 10:30 AM
BES Domino 4.0 SP2 rsun BES Admin Corner 12 08-25-2005 01:27 PM


ENDOXPERT GASTROENTROLOGY MEMORY BASKET BRAND NEW picture

ENDOXPERT GASTROENTROLOGY MEMORY BASKET BRAND NEW

$118.36



New Siemens 6ES7953-8LL31-0AA0 SIMATIC S7, Micro Memory Card 6ES7 953-8LL31-0AA0 picture

New Siemens 6ES7953-8LL31-0AA0 SIMATIC S7, Micro Memory Card 6ES7 953-8LL31-0AA0

$144.11



2 - RAM DRAM Tray-Container Box For Server PC Memory DIMM Modules - Fits 100 NEW picture

2 - RAM DRAM Tray-Container Box For Server PC Memory DIMM Modules - Fits 100 NEW

$21.90



2 Computer Memory Packaging Tray Case for Desktop PC DDR4 Modules - Fits 100 New picture

2 Computer Memory Packaging Tray Case for Desktop PC DDR4 Modules - Fits 100 New

$21.50



Okuma E4809-045-091-E OPUS 5000II Board CMOS Memory E4809-045-167-C TCC-A 112-C picture

Okuma E4809-045-091-E OPUS 5000II Board CMOS Memory E4809-045-167-C TCC-A 112-C

$225.00



We R Makers The Cinch Book Binding Machine Round hole V 2 White Aqua 71050-9 picture

We R Makers The Cinch Book Binding Machine Round hole V 2 White Aqua 71050-9

$79.99







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.