title: How to set fullscreen in Android R?
body: <p>I need to put a screen in fullscreen in my app. For this I am using this code:</p>
  <pre><code>override fun onCreate(savedInstanceState: Bundle?) {
      super.onCreate(savedInstanceState)
      requestWindowFeature(Window.FEATURE_NO_TITLE)
      window.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
              WindowManager.LayoutParams.FLAG_FULLSCREEN)
      setContentView(R.layout.activity_camera_photo)
  </code></pre>
  <p>However, the <code>WindowManager.LayoutParams.FLAG_FULLSCREEN</code> flag is deprecated.</p>
  <p>My app supports Android Lollipop (API 21) to Android R (API 30).
  What is the correct way to make a screen go fullscreen?</p>