I need to create secondary object in android project .java file So, I
can write like
inside our HelloWebView.java class-
webview.addJavascriptInterface(new MyParent() , "MyParent");
webview.addJavascriptInterface(new MyChild() , "MyParent.MyChild");
class Widget
{
}
class Message // secondary class's object
{
public String test()
{ }
}
to call the method of secondary object- message from javascript file
like
var strname=Widget.Message.test()
It won't allow due to dot "." or any other reason in interfaceName
that I pass in addJavascriptInterface() method at cpp layer. Can any
body tell how to create and where to modify in webkit.
Thanks in advance
Regards
androlance
--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en