Answers for "how to open activity in full screen android"

2

fullscreen activity android

public class ActivityName extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // remove title
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
            WindowManager.LayoutParams.FLAG_FULLSCREEN);
        setContentView(R.layout.main);
    }
}
Posted by: Guest on September-14-2020

Code answers related to "how to open activity in full screen android"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language