BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/)
-   General BlackBerry Discussion (http://www.blackberryforums.com/general-blackberry-discussion/)
-   -   Logging App in Blackberry Simulator Debug mode (http://www.blackberryforums.com/general-blackberry-discussion/258060-logging-app-blackberry-simulator-debug-mode.html)

amitsrivas 02-28-2012 01:32 AM

Logging App in Blackberry Simulator Debug mode
 
I am newbie in Blackberry App development.

I have a SDK which needs to be integrated with a HelloWorld App

I am sending some HTTP url request to server and getting response in an HTML format.
I am rendering the reponse in HorizontalFieldManager layout.

Code

void processConnection(HttpConnection connection, Event e) {
// Cancel previous request.
if (_currentConnection != null) {
try {
_currentConnection.close();
} catch (IOException e1) {
}
}

_currentConnection = connection;

BrowserContent browserContent = null;

try {
browserContent = _renderingSession.getBrowserContent(
_currentConnection, this, e);

System.out.println("HelloWorld");
System.out.print(browserContent);

if (browserContent != null) {

field = browserContent.getDisplayableContent();

if (field != null) {
synchronized (Application.getEventLock()) {
hfc1.deleteAll();
hfc1.add(field); // Add Field to HFC1
}
}
browserContent.finishLoading();
}

} catch (RenderingException re) {
} finally {
SecondaryResourceFetchThread.doneAddingImages(this );
}
}


From the snippet,
An HTML content is added in hfc1.
I want to print in the log, the content which is added in the hfc1 object. How can we do that? Is there any way to print the html content of HFC.

The html content is a link which should be clickable, but unfortunately its not clickable in the app. I need to debug the content which I am showing in the app. Please help me in this.

Thanks in Advance
-Amit

dc/dc 02-28-2012 07:22 AM

Re: Logging App in Blackberry Simulator Debug mode
 
Please look in the Developer section.


All times are GMT -5. The time now is 12:59 PM.

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