Send URL address to Intent.

Asked 2 years ago, Updated 2 years ago, 89 views

I'd like to put the coordinates on Google Maps and put them on the screen.

Is there a way to use Intent to display the browser at a specific URL address? Please give me a hint.

android android-intent

2022-09-22 14:51

1 Answers

If you want to open a website, do this.

String url = "http://www.example.com";
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse(url));
startActivity(i);


2022-09-22 14:51

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.