1

Set page title of WebView from fragment

view story
linux-howto

http://stackoverflow.com – I have a ViewPager, with each view being a WebView. I'd like, if the user clicks on a link in one of the WebViews, to set the title of the Actionbar to the current web page. I was hoping I could use shouldOverrideUrlLoading to do that, but the page title is always the previous page. So if a user clicks on link 1, then link 2, and link 3. On page 3 the title of link 2 is being shown in the Actionbar. If I put the title setting code in onPageFinished, the page title is being set to the next view of the ViewPager, due to the ViewPager executing the previous/next views for performance. Fragm (HowTos)