BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 02-28-2012, 02:32 AM   #1
amitsrivas
New Member
 
Join Date: Feb 2012
Model: 8520
PIN: N/A
Carrier: Airtel
Posts: 3
Post Logging App in Blackberry Simulator Debug mode

Please Login to Remove!

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
Offline  
Old 02-28-2012, 08:22 AM   #2
dc/dc
Spam Reporter
 
dc/dc's Avatar
 
Join Date: Oct 2005
Location: IAD
Model: 6230
Carrier: Voicestream
Posts: 14,524
Default Re: Logging App in Blackberry Simulator Debug mode

Please look in the Developer section.
__________________
I h8 txtspk.
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

Similar Threads for: Logging App in Blackberry Simulator Debug mode
Thread Thread Starter Forum Replies Last Post
Web Desktop 5 no application loader Walter_Str BES Admin Corner 2 08-27-2009 07:05 AM
BES 5.0 Exchange/Domino final documentation posted illy BES Admin Corner 9 05-12-2009 11:16 AM
Initialize problem with BES and GroupeWise dupere BES Admin Corner 2 07-02-2008 02:09 PM
Blackberry Activation(s)... Barry_Black General BlackBerry Discussion 5 06-07-2007 12:07 PM
[2005-05-11] BlackBerry Connection bfrye BlackBerry In the News 0 05-11-2005 09:16 AM


4 Count Case GE ProLine 2 Bulb 120V T12 Electronic Fluorescent Light Ballasts picture

4 Count Case GE ProLine 2 Bulb 120V T12 Electronic Fluorescent Light Ballasts

$49.99



Advance VEL-2S86 Electronic Fluorescent Rapid Start 277V Ballast picture

Advance VEL-2S86 Electronic Fluorescent Rapid Start 277V Ballast

$20.99



Philips ADVANCE AmbiStar RELB-2S40-N Replacement Ballast 40-Watt 2-Lamp T12 picture

Philips ADVANCE AmbiStar RELB-2S40-N Replacement Ballast 40-Watt 2-Lamp T12

$18.79



KTEB 240-1-TP/F Keystone 2 Lamp T12/T8 Rapid Start Electronic Ballast picture

KTEB 240-1-TP/F Keystone 2 Lamp T12/T8 Rapid Start Electronic Ballast

$10.19



10-Count GE Fluorescent Ballast, GE432-MVPS-L Electronic T8, 120v to 277v picture

10-Count GE Fluorescent Ballast, GE432-MVPS-L Electronic T8, 120v to 277v

$108.99



Philips Advance Core And Coil Ballast Kit 1-250W - 71A5892-001D.Free Shipping. picture

Philips Advance Core And Coil Ballast Kit 1-250W - 71A5892-001D.Free Shipping.

$29.99







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