Inside WebView class addJavaScriptInterface() method is calling in reverse order when I have two calling stmts.

by always19 » Mon, 22 Feb 2010 15:07:25 GMT


Sponsored Links
 I'm wondering
 > webview.addJavascriptInterface(new Def(), "Abc.Def");
 does work or not.
Actually, I need it too.
like,
{{
window.Abc.Def.method();
}} on script.

How can I add javascriptinterface on deeper inner object? not as a
directly child of window object.

Sorry that it's not an answer of yours.
-19




--



Other Threads

1. Getting an Activity object from ActivityManager or ComponentName

ok thanks.  I apologize for the redundant question, I just did more
google searches and I found a thread that discussed this already right
after I sent out my last response.






-- 

2. Getting an Activity object from ActivityManager or ComponentName



:: shrug ::

As I said, I do not think there is an API for this, outside of
Instrumentation. Leastways, I've never seen one, and I'm real sure there
isn't one for services, based on prior list discussions.

Pass the Activity object into the other class from the Activity itself
via some sort of registration method. Or maintain your own static
HashMap. Just be careful not to leak Activity instances.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Online Training: 26-30 April 2010: http://onlc.com

-- 

3. Getting an Activity object from ActivityManager or ComponentName

4. Getting an Activity object from ActivityManager or ComponentName

5. Force a connection OTA (even if you have a WiFi connection).

6. Hasil speedtest Matrix Broadband

7. Animations between Intents