Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Posts: 81
Registered: ‎07-16-2008
My Device: Curve - 8320
My Carrier: AirTel

Re: String is being Truncated unwantedly ...

I am returning one prepared string, since after preparing the string fully, then user has options to either send the string contents as is via email, save it as a Note or dump it in a file on the SDCard.


I am simply outputing the string to Log using the method-  

EventLogger.logEvent(GUID, errorMsg.getBytes(), EventLogger.ERROR) ;


The output appears into the Log wrapped up to the next line once a line is longer to fit in a single line.


BTW, your trick to do System.out.println is another good idea to dump long strings. I would really want to give a try to output the text into a Stream and redirect the stream to Log, String or some other destination.

*(Vipul)() ;
Posts: 29
Registered: ‎09-12-2008
My Device: Curve 8330

Re: String is being Truncated unwantedly ...

Interesting.  When I look at it in the 8330 simulator, all I can see is the first line of each message.  How do you see the rest of the message?  I'm not that familiar with the log facility.