configuring a webBrowser

36 views
Skip to first unread message

chisom dike Onwuegbuzie

unread,
Oct 13, 2013, 5:34:17 PM10/13/13
to codenameone...@googlegroups.com
please is there a way i can configure a web browser so that it doesnt load some content

Shai Almog

unread,
Oct 14, 2013, 1:50:22 AM10/14/13
to codenameone...@googlegroups.com
You can filter content and use a combination of set page and navigation listeners in the browser component.
This very much depends on the platform you are targeting, if J2ME is your main target you need to work with the HTMLComponent.

chisom dike Onwuegbuzie

unread,
Oct 17, 2013, 4:41:00 PM10/17/13
to codenameone...@googlegroups.com

please can you show me how

Shai Almog

unread,
Oct 18, 2013, 2:24:02 AM10/18/13
to codenameone...@googlegroups.com
This isn't simply a matter of 10, 20 or 50 lines of code. This requires a lot of effort.
Which devices are you targeting?

chisom dike Onwuegbuzie

unread,
Oct 18, 2013, 3:14:10 AM10/18/13
to codenameone...@googlegroups.com

im targeting blackberry and android devices

Shai Almog

unread,
Oct 18, 2013, 3:33:29 PM10/18/13
to codenameone...@googlegroups.com
RIM has issues with it's native browser so it's configured to use a rather limited version by default.
For Android you will need to override the browser components navigation events and block all navigation. You would then fetch/adapt the data and set it manually to the component.
Reply all
Reply to author
Forward
0 new messages