How To Open An URL In Android’s Web Browser

Here’s a code snippet to show you how to use “android.content.Intent” to open an specify URL in Android’s web browser.

	button.setOnClickListener(new OnClickListener() {

		public void onClick(View arg0) {

			Intent intent = new Intent(Intent.ACTION_VIEW, 


For full example, please refer to this – Android button example.

3 thoughts on “How To Open An URL In Android’s Web Browser

  1. router January 21, 2013 at 7:23 pm Reply

    Great items from you, man. I have remember your stuff prior
    to and you’re just too fantastic. I really like what you have acquired right here, certainly like what you’re saying and the
    way in which in which you assert it. You make it entertaining and you continue to take care of to keep it wise.
    I can’t wait to read far more from you. That is really a tremendous site.

  2. Hello There. I found your blog using msn. This is a very
    well written article. I’ll make sure to bookmark it and come back to read more of your useful info. Thanks for the post. I’ll definitely return.

  3. Rolando January 23, 2013 at 2:18 am Reply

    I am not sure where you’re getting your info, but good topic. I needs to spend some time learning more or understanding more. Thanks for fantastic information I was looking for this information for my mission.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: