public void loadData (String data, String mimeType, String encoding)
In this we pass HTML, mimeType and encoding
where else in
public void loadDataWithBaseURL (String baseUrl, String data, String mimeType, String encoding, String historyUrl)
where baseUrl can be a base url, such as the path to the resource folder, or sdcard or any other path where your images or other media are associated with your html, and I don't know historyUrl very well
according to the documents [loadData][1]
Note that a similar JavaScript source policy means that a script running on a page loaded with this method will not be able to access content loaded using any other scheme than βdataβ, including βhttp (s)β. To avoid this limitation, use loadDataWithBaseURL() with the appropriate base URL.
means loaddata will only include the part that is in the first parameter.
and
Please note that contents specified in this way can access local device files (via file scheme URLs) only if baseUrl specifies a scheme other than "http", "https", "ftp", "ftps", or "javascript".
simple meaning above, you can access data from http and ... others by passing baseUrl
for example . I wrote HTML that required a ton of image from my ftp or other place, what I would do is pass the URL of my ftp in the baseURl parameter, and I can access my images p>