Android links not working in a webview

Basically I'm parsing the HTML of a web page and then loading it into a webview via a string using "loadData". My problem is this stops my links working, the webview doesn't know the current URL of the page so when a link is clicked rather than loading http://myurl.com/page.html it tries to load http://page.html which clearly doesn't load.

Does anyone know how to solve this problem without editing the HTML pages?

Answers


http://developer.android.com/reference/android/webkit/WebView.html#loadDataWithBaseURL(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)


Need Your Help

Get All Bookmarks from Word Document

c# ms-word bookmarks

I've been looking around for a solution to this for a little while now.

How to create Ribbon tabs dynamically?

c# mvvm prism mef ribbon

I want to start developmet of new application using PrismV4, MEF, Ribbon.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.