Issue
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??
Solution
Try this way on button OnClickListener()
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://stackoverflow.com/")));
Should work.
Answered By - KalanaChinthaka
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.