Thank you sir ! I added following in the manifest.xml <application android:icon="@drawable/icon" android:label="@string/ app_name" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:screenOrientation="landscape"> .... and the application is full screen enabled ! as you correctly said ... by this mechanism i am able to see the full screen effect immediately ... whereas previously i used to see the titlebar for fraction of second!
well ... i am developing an application which would run on an android device (and not the android phone!) ... so i want the application to start immediately after the device is powered on (and booted successfully) i am planning to show the battery strength , n/w strength etc on the home screen of my application ... lets see ... thanks a lot for the help ! ~pp On Oct 8, 7:52 pm, Mark Murphy <mmur...@commonsware.com> wrote: > preetam_pict wrote: > > thanks sDroid ! > > > I tried following code ... > > > @Override > > public void onCreate(Bundle savedInstanceState) > > { > > // this should be before calling super.onCreate()! > > setTheme(android.R.style.Theme_NoTitleBar_Fullscreen); > > > super.onCreate(savedInstanceState); > > setContentView(R.layout.splashscreen); > > } > > > But i have to do this in every activity right ? > > 1. You are better served doing this in the manifest via the > android:theme attribute. That way, the title and status bars will be > gone immediately, rather than after onCreate() returns. > > 2. Yes, you have to do this on every activity for which you want the > full screen. Bear in mind that what you want should be secondary to what > the user wants, and users tend to want to see their battery level, > signal strength, and such. Hence, please be judicious about your use of > full-screen themes. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > Android Development Wiki:http://wiki.andmob.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---