Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to open a Url using Intent

    • 0
    • 4
    • 0
    • 0
    • 0
    • 0
    • 0
    • 1
    • 1.01k
    Comment on it

    To open a url using Intent, first create a button on the layout. And set the onClickListener on the button and open the browser using implicit Intent, like below:-

     Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
     startActivity(intent);
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: