• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Hide Address Bar after page load

devguy

Lurker
Apr 3, 2011
1
0
Hi,
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:
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.
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones