Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Android™ Runtime Development

Reply
New Developer
wekncdr
Posts: 9
Registered: ‎09-28-2012
My Device: Developer

Android Runtime WebView's setDomStorageEnabled setting causes app to show black screen

Hi, I'm using Android Runtime SDK's WebView to display a twitter page.

 

WebView wvt = (WebView)findViewById(R.id.twitter);
wvt.setWebViewClient(new WebViewClient());
WebSettings s = wvt.getSettings();
s.setJavaScriptEnabled(true);
s.setDomStorageEnabled(true);
wvt.loadUrl("http://twitter.com/some_name");

 When I tested this code in the playbook simulator, the app turns into a black screen when loading the WebView, and then I've to terminate it. But this code works on Android devices. 

 

Does anyone have any idea why this is happening? Are WebView's settings not completely compatible?

Please use plain text.