can we call a native method from javascript with another function name as a parameter to the method?
<p>I have a hybrid app:  </p>

<p>Native code:  </p>

<p>Main activity :  </p>

<pre><code>public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

    webView=(WebView)findViewById(R.id.webkitWebView1);
    WebSettings settings = webView.getSettings();
    settings.setJavaScriptEnabled(true);
    settings.setDatabaseEnabled(true);
    settings.setDomStorageEnabled(true);

    //To display the alert
    webView.setWebViewClient(new WebViewClient());
    webView.setWebChromeClient(new WebChromeClient());
    webView.setWebChromeClient(new WebChromeClient() {
        public void onExceededDatabaseQuota(String url, String databaseIdentifier, long currentQuota, long estimatedSize,
                long totalUsedQuota, WebStorage.QuotaUpdater quotaUpdater) {
            quotaUpdater.updateQuota(estimatedSize * 1);
        }
    });


    openCamera=new OpenCamera(webView,AvivaInsureActivity.this);
    webView.addJavascriptInterface(openCamera,"camera");

    //load  html5 page
    webView.loadUrl("file:///android_asset/html/home.html");

}
</code></pre>

<p>Class :  </p>

<pre><code>public class OpenCamera  {
...
public void setName(String name){
name=name;
....
}
</code></pre>

<p>javascript+html:  </p>

<pre><code>   &lt;html&gt;
   &lt;head&gt;
   &lt;script type="text/javascript"&gt;
   function openMsg(msg){ 
  camera.setName("sneha");
  }
  &lt;/script&gt;

 &lt;/head&gt;
 &lt;body&gt;
 &lt;div class='content'&gt;&lt;/div&gt;
 &lt;div class='buttons'&gt;&lt;input type='button' class='yesB' value='Yes' /&gt;
 &lt;input class='yesB' type='button' value='No' /&gt;&lt;/div&gt;
 &lt;/div&gt;
 &lt;input type="button" onclick="openMsg('Do you wish')"/&gt;
 &lt;/body&gt;
 &lt;/html&gt;
</code></pre>

<p>Is there a way I can pass a function name say <code>addInt()</code> as a parameter to </p>

<pre><code> camera.setName("sneha"); 
</code></pre>
