How can I load an external html page in a WebView, originally with visiblitiy=gone, and maaintain it as it was. The problem is that when I execute loadUrl the native browser opens with the URL. Layout:
> <?xml version="1.0" encoding="utf-8"?> > <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" > android:orientation="vertical" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > android:background="#ffe3d0"> > <TextView > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:text="Demo: WebView" > android:layout_gravity="center" style="@style/MainLabel" > android:autoText="false" android:id="@id/mainLabel" > android:textColor="#3c3f41"/> > <WebView > android:layout_width="fill_parent" > android:layout_height="30dp" > android:id="@id/webView" android:visibility="gone"/> > <TextView > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:text="@string/secondTextView" > android:id="@+id/textView" android:textColor="#1635ff" > android:layout_gravity="center"/> > </LinearLayout> > On Create: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); WebView webview = (WebView) findViewById(R.id.webView); WebSettings webSettings = webview.getSettings(); webSettings.setJavaScriptEnabled(true); webview.loadUrl("http://google.com/"); } Thanks in advance -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

