Send URL address to Intent.

Asked 1 years ago, Updated 1 years ago, 79 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.