Hi,

Thanks Mark, for your clarification.

The status bar needs to be hidden when I am browsing a web page(the page
which I am viewing has to be full screen).

Since I am using WebView, this is not possible. Are there any other
solutions?


Ashok Jeevan
+91 9895401278


On Sun, May 16, 2010 at 11:12 PM, Mark Murphy <mmur...@commonsware.com>wrote:

> 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 android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to