I want to load a local html into a WebView WITHOUT using "file:///" because that does not allow cookies. Is there a way to use something like "localhost" ?
Secondly, I could not find a way to enable cookies in the getSettings(). Because cookies are not allowed while using "file:///".
Best Answer
You can only do something like that. This solution load HTML from a String variable:
EDIT: try to set the first parameter (the baseURL) of loadDataWithBaseURL() for your needs