N
N
Nikolai2020-05-17 04:34:21
Java
Nikolai, 2020-05-17 04:34:21

Why are instagram links opening in wrbview?

Greetings. I made a simple application on webview and in it third-party links (including instagram) should, in theory, open outside of my application. It seems to work with all sorts of VK, vatsap, facebook, email, etc., but with instagram links some miracles and only instagram pages open inside my webview. Here is what I did:

if (_url.startsWith("https://instagram")) {
          Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("_url"));
          startActivity(browserIntent);
        }

I've tried everything, it just doesn't work.
What did I do wrong, please tell me.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question