Yeah, got it done, thanks Mark! Realising there's hardly anything
outthere describing this for noobs, here's what I did. Further down
you'll find the layout file.

One simple thing, I did not find out so far: How do I address the
ImageView of the layout file, so I can call something like
ImageView.setVisibility(View.VISIBLE);

Do you know the shortcut to do this?

Thanks, best, Hannes



public class Splash extends Activity {
     @Override
     public void onCreate(Bundle icicle) {
          super.onCreate(icicle);
          setContentView(R.layout.splashscreen);

        final WebView wvc = (WebView)findViewById(R.id.webview);
        wvc.getSettings().setJavaScriptEnabled(true);
        wvc.setWebViewClient(new WebViewClient() {
          @Override
          public void onPageFinished(WebView view, String url)
          {
              /* Call whatever, It's finished loading. */
                  wvc.setVisibility(View.VISIBLE);
                  }
      });
        wvc.loadUrl("http://www.google.de";);

     }
}


// LAYOUT FILE //

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/
android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">



       <ImageView
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:scaleType="center"
                android:src="@drawable/splash"
                android:visibility="visible"
        />

        <WebView android:id="@+id/webview"
            android:layout_height="fill_parent"
            android:layout_width="fill_parent"
            android:visibility="gone"
         />

</FrameLayout>




















--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to