Problem using BrowserContent to render html page during finishloading()

Please Login to Remove!

Hello Everyone,

I am in a big trouble. I want to implement OAUTH for twitter login on blackberry devices. I am successful in getting request token from twitter but after that using the oauth_token value received with the authorize url when i am trying to establish connection and trying to use BrowserContent and RenderingSession classes to render the page using that connection.

But i am always getting an illegalstateexception on the line browserContent.finishLoading().

I want to know few things:-
1.Is it really possible to implement oauth in blackberry.
2.Is it possible to use BrowserContent on even low end devices.
3.As i am getting html data to render the twitter login page, so to render html page while creating a RenderingSession like _renderingSession = RenderingSession.getNewInstance(); should i set RenderingOptions to enable html rendering.

Please help me out...i know i am not clear enough but i hope you will be able to let me know that if i am doing anything wrong by going through my code.
And i can tell u more on further communication.

case Event.EVENT_SET_HEADER: // no cache support
case Event.EVENT_SET_HTTP_COOKIE: // no cookie support
case Event.EVENT_HISTORY: // no history support
case Event.EVENT_EXECUTING_SCRIPT: // no progress bar is supported
case Event.EVENT_FULL_WINDOW: // no full window support
case Event.EVENT_STOP: // no stop loading support
default:
}

return null;
}

public int getAvailableHeight(BrowserContent browserContent) {
// field has full screen
return Display.getHeight();
}

public int getAvailableWidth(BrowserContent browserContent) {
// field has full screen
return Display.getWidth();
}