Hide Address Bar after page load

Put your problem here if it does not fit any of the other categories.

Hide Address Bar after page load

Postby devguy » Mon Apr 04, 2011 12:06 am

I've created a WebView app and everything works fine.
The only remaining feature I need for the app is to hide the address bar after, because I want the app to look more like a regular app and not a webpage within a web browser window.

My code looks like this,
Code: Select all
package com.mobile.app;

import android.app.Activity;
import android.os.Bundle;
import android.view.WindowManager;
import android.webkit.WebView;

public class NormalActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
       
        final WebView wv = (WebView) findViewById(R.id.helloWebView);
        wv.getSettings().setJavaScriptEnabled(true);
        wv.loadUrl("http://www.google.com");
       
       
       
    }
}

Any help or ideas? Thanks in advance.
devguy
Once Poster
Once Poster
 
Posts: 1
Joined: Mon Apr 04, 2011 12:02 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 15 guests