How to set textview text using javascript android
<p>I want to set text in textview in my android class using a javascript which contains a same named variable as in the class for textview to which I want to assign some text. Something like this:</p>

<p>In js:</p>

<pre><code>function validClick() {

 fromJS.append("vikrant");

 valid.performClick();

 document.getElementById("ok").value = "Accepte";
}
</code></pre>

<p>fromJS is my textview in android class.</p>

<p>and the code in the class looks like:</p>

<pre><code>    valid.setOnClickListener(new View.OnClickListener() {


        @Override
        public void onClick(View v) {
            // TODO Auto-generated method stub
            Context context = getApplicationContext();
            CharSequence text = fromJS.getText();
            CharSequence text = clsVariable;

            int duration = Toast.LENGTH_SHORT;

            Toast toast = Toast.makeText(context, text, duration);
            toast.show();


        }
    });
</code></pre>

<p>EDIT:
Also,
 I' writing </p>

<pre><code>    wbvw.addJavascriptInterface(valid, "valid");
    wbvw.addJavascriptInterface(fromJS, "fromJS");
</code></pre>

<p>in my onCreate method.</p>

<p>Can anybody please help?</p>

<p>Thanx in advance.</p>
