package com.example.Hello;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;
public class MainActivity extends Activity
{
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setFullScreen(this);
setContentView(R.layout.main);
}
protected void setFullScreen(Context ctx)
{
((Activity) ctx).requestWindowFeature(Window.FEATURE_NO_TITLE);
((Activity) ctx).getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
}
}