android - Can someone tell me what I'm doing wrong with this webview? -


trying load webview in fragment, see blank white screen....

tried using oncreate well, gives me same result. fragment being loaded, not web page.

noob android programming appreciated.

import android.os.bundle; import android.support.v4.app.fragment; import android.view.layoutinflater; import android.view.view; import android.view.viewgroup; import android.webkit.webview;  public class articleviewfragment extends fragment {  private webview wv;  public void onactivitycreated(layoutinflater inflater, viewgroup container, bundle savedinstancestate) {      wv = (webview) getview().findviewbyid(r.id.web_frame);     wv.getsettings().setjavascriptenabled(true);     wv.loadurl("http://www.google.com");     } 

}


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -