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);
}
}
12 Comments
Alternatively you can add
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
to AndroidManifest.xml under
Thank you :)
tambien me gusta mas esta
tambien me gusta mas esta
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
Thanks for sharing.
All Posts are really help full. Android is one of my favorite language. You are providing good knowledge. I am doing my graduation after that I am going to do programming. Thanks! Essay
Following is the code snapshot.
protected void setFullScreen(Context currContext) { ((Activity) currContext).requestWindowFeature(Windows.FEATURE_NO_TITLE); ((Activity) currContext).getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN); }
Call above function with as follows
setFullScreen(CurrActivity.this);
For more detailed example. Please check following blogs
http://meticulousapps.blogspot.in/2012/03/android-game-start-application-in-full.html
you can download free application at following
https://play.google.com/store/apps/developer?id=Meticulous+Apps
Vary helpful and simple. Thank you