codenameone - Codename One - BrowserComponent: allow browsing only on two domains -


how can force browsercomponent browsing on 2 domains?

use case: browsercomponent has change page because legal reason, example user clicks link or page redirect (by javascript, metatag, http header redirect, etc.). if new page on domain1 or domain2, it's ok , browsercomponent can load it; if it's on other domain, browsercomponent should call o.s. native browsing tool (for example, android can show browser picker).

thank help.

that's browsernavigationcallback exists for. it's powerful tool allows communicate on native browser thread , can block navigation isn't there. fyi since native browser thread it's crucial don't block , don't access edt it.

the underlying javascript bridge implemented on top of js code sends navigation request java code.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -