Android: open web page in a browser

To open a web page in an Android app, we need to create a new Intent and start a new Activity with it.

Here’s a Java method that we can re-use:

Just pass the URL of the web page you’d like to open to this method.

Source: How to open a website when a Button is clicked in Android application?

Related Posts:

Posts that may be related to "Android: open web page in a browser":

Catzie

A Filipino programmer with a variety of interests such as baking, singing, making up silly song/rap lyrics, K-pop, drawing, creating unique dessert flavors, obsessing about finding out how some things works, board games, anime, video games, and forgetting things that usually go in her long list of interests. Running small-time online dessert shops Cookies PH and Catzie's Cakery.

Leave a Reply

Your email address will not be published. Required fields are marked *