webview with full screen in android

i have made a simple hello web view example and i want to make it in full screen like i do not want that two top most black bars.
anybody have any idea how to do that?

thanks a lot.

  • Set cursor position in android Edit text
  • Turn off screen programmatically when face is close the screen on Android
  • Install OpenGL ES and compile code for android
  • Screen flashes randomly when using overridePendingTransition on Jelly Bean
  • Issue with ComposeShader on Android 4.1.1
  • Can you hide an element in a layout, such as a spinner, depending on an activity?
  • Related posts:

    Error while Launching activity
    Updating my google play “What's new” section
    Android: getting Resources$NotFoundException for abc_ic_ab_back_material
    No resource found that matches the given name '@android:style/Theme.Material.Light.DialogWh...
    Cannot Add Library to Android Project in Eclipse
    How to make my own custom dialer in an Android phone
  • How to read/write preferences from a DialogFragment?
  • Could not find class 'android.webkit.WebResourceResponse' when running HelloCordova on Android 2.2
  • Android write file
  • How can I send a Firebase Cloud Messaging notification without use the Firebase Console?
  • Is “shouldOverrideUrlLoading” really deprecated? What can I use instead?
  • Showing empty view when ListView is empty
  • 2 Solutions collect form web for “webview with full screen in android”

    The quickest way to do this would be to add


    Into your activity in the AndroidManifest.xml file

    Alternatively you can do it programmatically in the OnCreate method of your Activity :

    //Full screen
    this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); 
    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.