• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Hyperlink button in Eclipse SDK

mukhs

Lurker
Hello,

I am wondering if there is a way to hyperlik a button in the eclipse . Like when I add button in main.xml to the gui thingee . So I want to hyperlink the button so that it redirects to a different page/url.

Any help/suggestions ?

Thanks
 
Hi, did you try adding this code to your onClick() in your project?


Uri uri = Uri.parse("insert link here");
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);
 
Back
Top Bottom