Transisting to different link when clicking on imageview android -


i have used imageview , added link it. have set listeners it. here 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; 

but upon clicking on imageview ever "www.xyz.com" value taking different webpage.

can know mistake?


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -