Using getDisplayableContent to display raw HTML
Hi. I've overloaded the HttpConnection class so that it returns a string instead of making a connection. But when I call getDisplayableContent(), the resulting field contains no data. I looked at the connection class and the data is in the class. Does anyone know what we need to do for getDisplayableContent() to display the content? I'm not sure what method it is calling from the connection class because I've tried breakpoitns in all the methods, but they don't get called. Thanks for any help.
Code:
renderingSession = RenderingSession.getNewInstance(); |
You can implement javax.microedition.io.HttpConnection interface so that it takes your text like this.
Code:
Then you can pass an object of this implementation to get the field as follows; Code:
Regards, -Kelum- |
Thank you for your help. But it seems nothing is being displayed after implementing your code. I must be doing something incorrect. Here's my connection class.
Code:
public class LocalHttpConn implements HttpConnection { This is the main code Code:
try |
I think the reason is implementation of the rest of the methods of javax.microedition.io.HttpConnection interface. Don't implement those methods to return null values. You can see below how I implemented it.
Code:
Try this way and hope it'll work for you. Cheers, -Kelum- |
I'm having the same problem as JJ
I've posted in the BlackBerry (RIM) forums as well. I feel stupid at this point that this isn't working. Did you get this working JJ? If so, could you please post your Screen code, and the HttpConnectionImpl classes? This is driving me insane that I can't get this working!!! |
All times are GMT -5. The time now is 05:10 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.