Hi all,

I'm trying to get some website as a fullscreen webapp going; using
webview.

So I have a simple CSS layout based on percental width and height to
fill the entire screen on either portrait and landscape.

All is doing fine apart that when I'm navigating away from my
index.html (lets say to index01.html) and doing a orientation change
by opening or closing the keyboard on the G1, the entire page flips
back to index.html.

No idea what's the reason for this and I couldn't find any ressources.
So any help would be highly appreciated.

Thanks a lot, Best, h...@nnes


This is my simple fullscreen code:


 public void onCreate(Bundle icicle) {
        this.requestWindowFeature(Window.FEATURE_NO_TITLE);
        this.getWindow().setFlags
(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
        setContentView(R.layout.main);

        super.onCreate(icicle);
        try{
            WebView wv = new WebView(this);
            wv.getSettings().setJavaScriptEnabled(true);
            wv.getSettings().setJavaScriptCanOpenWindowsAutomatically
(false);
            wv.getSettings().setPluginsEnabled(true);
            wv.getSettings().setSupportMultipleWindows(false);
            wv.getSettings().setSupportZoom(false);
            wv.setVerticalScrollBarEnabled(false);
            wv.setHorizontalScrollBarEnabled(false);
            wv.loadUrl("http://www.myserver.com/index.html";);
            WebViewClient wvc = new WebViewClient();
            wvc.shouldOverrideUrlLoading(wv, "http://www.myserver.com/
index.html");
            wv.getSettings().setLoadsImagesAutomatically(true);
            wv.setWebViewClient(wvc);
            setContentView(wv);

--~--~---------~--~----~------------~-------~--~----~
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