This code makes the current Activity Full-Screen. No Status-Bar or anything except the Activity-Window!
public class FullScreen extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.main);
}
}
6 Comments
Alternatively you can add
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
to AndroidManifest.xml under
Thank you :)
Many thanks !
hei how to insert this patch to android? can u please give me the tutorial and what tools I need,,,,
I hope you will like my recommendation,More information can be found online at http://www.fashionmaternitydress.com http://www.bangaccessory.com http://www.petaccessoryonline.com
Wow, so well. I consider computer programming is hard for me. Do you use language of C? http://www.topckit.com