안드로이드 개발 질문/답변
(글 수 45,052)
webview를 사용하여 현재의 url 주소를 가져오고 싶습니다.
예를 들어, http://www.androidpub.com 에 접속을 한다 치면,
각 게시물 마다 고유의 url 들이 제각각으로 있을 것입니다.
현재 보여지고 있는 페이지의 주소를 받아와 String 과 같은 text로 저장하고 싶은데..... 어렵네요 ㅠㅠ
도움 부탁드립니다.




public String getUrl ()
Get the url for the current page. This is not always the same as the url passed to WebViewClient.onPageStarted because although the load for that url has begun, the current page may not have changed.
Returns