Android: open web page in a browser

Last updated on

Written by

on

in

, , ,

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

Comments

Leave a Reply

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