Trying to Multiply in Android
<p>I'm trying to make a simple converter that multiplies a value entered by 2.2 but i am having problems getting the result to a text view. The error I am getting says 'cannot resolve method setText(Double). any advice?</p>

<pre><code>public void onClick(View v) {
    double result =0;
    double a = Double.parseDouble(weightEntered.getText().toString().trim());
    double b = 2.2;
    if(v == button_convert)
    {
        if(lbs_kg.isChecked() == true)
            result = (a * b);
            t1.setText(result);
        if(kg_lbs.isChecked() == true)
            t1.setText("Selected is : "+kg_lbs.getText());
    }
</code></pre>