How to develop an app to open a custom URL in browser(external) with Android Studio and Kotlin

Опубликовано: 22 Март 2026
на канале: Android Arctic
9,099
174

Hi guys,
Today I will show you how to open an URL in browser. So, let's get started.
Wait for some time till Gradle build completes
1. We will start with .XML file by creating a Button it it. Now we will go to kotlin file.
2. In .kt file we sill give login to our app.
3. Now, lets test our app in android emulator.
4. We clicked the button and URL openedin new chrome tab. It's working fine but it is static. So, lets make it dynamic.
5. Now, we will modify our design and add a edittext to take a url input from user and then open it.
6. now lets run it. Its crashed as url was invalid. URL opened successfully

Everything working fine.
Thanks for watching video. Please like and share.