Transisting to different link when clicking on imageview android
<p>I have used an <code>ImageView</code> and added a link to it. I have set listeners to it. Here is the code:</p>

<pre><code>case R.id.imgLogo:
    String url = "http://www.xyz.com";
    Intent intent = new Intent(Intent.ACTION_VIEW);
    intent.setData(Uri.parse(url));
    startActivity(intent);
    break;
</code></pre>

<p>But upon clicking on the imageview what ever is the "www.xyz.com" value it is taking to some different webpage.</p>

<p>Can I know what is the mistake?</p>
