Intent on fragment activity Android

0

How do you open a new screen or link through the intent in the fragment activity? See that you have a button at the end how do you open it?

    
asked by anonymous 05.07.2018 / 23:00

1 answer

0

Hello, first you must add the internet permission on AndroidManifest.xml

<uses-permission android:name="android.permission.INTERNET" />

Then you can call Intent by passing the URI

    Uri uri = Uri.parse("https://www.google.com");
    Intent intent = new Intent(Intent.ACTION_VIEW, uri);
    startActivity(intent);
    
11.07.2018 / 19:15