Opening Browser in Android
<p>I tried to open link in a browser in JavaScriptInterface but it seems it didn't work. What the problem with the code below:</p>

<pre><code>import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;

public class JavaScriptInterface extends Activity{

    Context mContext;
    JavaScriptInterface(Context c) {
        mContext = c;
    }

    public void openLink(){

        Uri uri = Uri.parse("http://www.google.com");
        startActivity(new Intent(Intent.ACTION_VIEW, uri));

    }

}
</code></pre>

<p>I already have the required permission:</p>

<pre><code>&lt;uses-permission android:name="android.permission.INTERNET" /&gt;
</code></pre>
