Ashok Jeevan wrote:
> Hi,
> 
> I am creating a WebView which is being launched from an activity named
> StartUpActivity.java. 
> 
> My intention is to hide the status bar at the top when the WebView comes
> to the front, so that the WebView remains full screen (no status bar).
> 
> I can hide the status bar when I launch an activity using this code : 
> getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN
> );
> 
> Is there any way to hide the status bar when using WebView?

WebView is not an activity. WebView is a widget. Hence, your existing
code will work for an activity that hosts a WebView. A better approach,
though, is to use:

android:theme="@android:style/Theme.NoTitleBar.Fullscreen"

in your <activity> element in your manifest.

If, by "I am creating a WebView which is being launched...", you really
mean that you are launching the built-in Browser application, then you
cannot affect the status bar, since that is not your application.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Consulting: http://commonsware.com/consulting

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

Reply via email to