Hello,
I'm trying to pass a map from javascript to a java function which has
to get that map information and process it:
JavaScript:
function beforeSMS()
{
sms.createSMS({body:"hello"});
}
Java:
I have added a new interface to webView:
mWebView.addJavascriptInterface(new SMSManager(this, mWebView),
"sms");
And the method where I need to get the info is like this, but message
is always null:
public void createSMS(Hashtable<SMSMessage, String> message)
{
SMSMessage result = null;
Enumeration<String>test= message.elements();
}
Do you know if webView supports hashtable or maps?
What I'm doing wrong?
Any clue?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---