1

webview に読み込まれている URL がredirecting他のページにあるかどうかを知る方法はありますか?

E.g

  I have an Edittext where I search for "car" .Now , result page for "car" is 
 loaded in the webview below. In the result page , I click for wikipedia link.
 There, First url loaded is "https://en.wikipedia.org/wiki/Automobile" which 
  automatically gets redirected to "https://en.m.wikipedia.org/wiki/Automobile".
 I want to know this redirection.

Actually , I want to find whether the url loaded in webview is redirecting or not.
 If it's redirecting ,then,I want to capture it and take some actions.

よろしくお願いします。

4

1 に答える 1