1

I have an app designed for a student body, and the thing is I want to have some buttons which will redirect the users to particular social networking pages of that student body (say, Instagram, LinkedIn....) But when I try to copy the link of the pages and paste it in button onclick and try to open it clicking the button, it says link broken or page isn't available.... How to do it properly??

1
  • Can you add your source code. It helps others to identify what you are doing wrong. Commented Jul 30, 2020 at 2:28

1 Answer 1

0

Try this way on button OnClickListener()

startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://stackoverflow.com/")));

Should work.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.