I looked for how-to. And found one that uses API: http://www.anddev.org/hide_statusbar-title_on_qvga_-_getting_screen_resolution-t2689.html. This solution is nice when app window style needs to be determined and set dynamically.
Later, I found an another way that uses style and much easier if app window style is fixed. It is just adding the android:theme attribute to activity element in AdroidManifest.xml file:
<activity android:name=".HelloWorld" android:label="@string/app_name" android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
For more info, check the last part of http://developer.android.com/guide/topics/ui/themes.html and the Android Styles and Themes XML files.
Leave a comment