02-17-2009 01:51 PM - edited 02-17-2009 01:53 PM
I've searched to no avail.
I've tried attaching keylisteners to the mainscreen, and even theUiApplication.
public class RawHTMLBrowserSample extends UiApplication
private class TestKeyPadListener implements KeyListener
public boolean keyChar(char key, int status, int time)
Once the embedded browser displays the content, it seems to own the application. All keystrokes and trackwheel events are captured by the underlying browser which leaves me with no ability to customize my inteface.
For instance, I'd like to know when the user clicks on a particular link that may require me to do something additional, or set the scroll speed on certain pages to allow the user to scroll quicker through certain content. etc.
Anyone know of a way to work around this?
02-17-2009 10:01 PM
02-18-2009 12:09 AM
02-20-2009 09:43 AM
02-20-2009 11:23 AM
hmmm. Thanks for the idea, I'll give that a try and see what I can get out of that. I guess I could use that same idea to trap the trackwheel click. Is there a way I can ask the Browserfield what is being clicked on? They really should include some events like, "before link click", "after link click", etc..
Thanks for the help
02-25-2009 09:04 AM
02-25-2009 06:29 PM
Thanks for the input. I've been looking around to see if anyone has create a java class that can render html, but again to no avail. In order to get the functionality I want it looks like I'll have to use something like the library at http://htmlparser.sourceforge.net/
The problem is they implement a few classes that isn't supported on the blackberry in even the smallest footprint lexer.
import java.util.Vector; // I think this is the only class I could find supported by the BB implementation.
Thanks again, I'll keep searching for an alternate method outside the BB browser. If anyone knows of a class, open source or for pay, that give the developer full control, please let me know.