I need a Android Java Webview Code that only allows one domain and redirects specific URLs

Job ID: 37659086

Budget: $10 – $30 USD

Hi, the code should make it so that only a specific domain/website in webview can be accessed.

Also when a specific url is visited, I want to redirect to a native page.

For example, if /login or /register of that specific url is visited in the webview it should instead take user to a custom login and register page that was already created in Android Studio. For example: (activity_login and activity_register).

I only need the code for this.

Essential Skills:

- Proficient in Android Java
- Understanding of Webview


Thanks,