BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 05-24-2010, 02:31 AM   #1
rachnakhokhar
Knows Where the Search Button Is
 
Join Date: Mar 2009
Model: 8100
PIN: N/A
Carrier: Airtel
Posts: 16
Default Problem using BrowserContent

Please Login to Remove!

Hello Friends,

I am using BrowserContent, RenderingApplication and RenderingSession classes for rendering twitter oauth login page. But when i am using below code then my login page gets render successfully...

Code:
browserContent = _renderingSession.getBrowserContent(                                     _currentConnection, null, e);

if (browserContent != null) {

final Field field = browserContent.getDisplayableContent();

 if (field != null) {
       synchronized (Application.getEventLock()) {
               demoScreen.deleteAll();
               demoScreen.add(field);
       }
 }
 browserContent.finishLoading();
}
but as i want callback in my application i have to pass the second parameter as my applications reference.

Code:
but when i change the line from this:-
browserContent = _renderingSession.getBrowserContent(                                     _currentConnection, null, e);

to:-
browserContent = _renderingSession.getBrowserContent(                                     _currentConnection, this, e);//where this is my RenderingApplication class reference
i always get illegalstateexception on the line finishLoading() and i am not able to even catch that exception and my page never gets render.

Can anyone please tell me where i am wrong.Please Please Please help me out...i m stuck in this very badly.

Thanks in advance.
Rachna
Offline  
Closed Thread



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


USA Windows VPS RDP Server/ Windows VPS Hosting - 4GB RAM + 150GB HDD picture

USA Windows VPS RDP Server/ Windows VPS Hosting - 4GB RAM + 150GB HDD

$11.99



Hoffman Exhaust Fan Enclosure Laser Server Cabinet A-DB275 picture

Hoffman Exhaust Fan Enclosure Laser Server Cabinet A-DB275

$199.99



NEW MOXA NPORT 5150 serial server DHL Fast delivery picture

NEW MOXA NPORT 5150 serial server DHL Fast delivery

$182.28



Used & Tested MOXA NPORT5232 2 Port RS422/485 Ethernet Device Server picture

Used & Tested MOXA NPORT5232 2 Port RS422/485 Ethernet Device Server

$195.08



MultiTech Systems Fax Finder FF440 Fax Server No PSU - mounting bracket damaged picture

MultiTech Systems Fax Finder FF440 Fax Server No PSU - mounting bracket damaged

$400.00



Wti Console Server + PDU CPM-800-1-EA picture

Wti Console Server + PDU CPM-800-1-EA

$550.00







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