Android & Wordpress Help center

Enable HTML5 Localstorage in WebView

By default android WebView doesn’t allows us to use the HTML5 local storage feature. So if any of you are trying to create a WebView and want to use HTML5 localstorage feature as well then you have to explicitly enable the DOM STORAGE using the following code :

WebView mWebview = (WebView) findViewById(;


this ensures that HTML5 local storage works in your WebView.


Single Post Navigation

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: