title: What are the replacement of these function and threads in java?
body: <p>Using: targetSdkVersion (API Level) 30.</p>
  <p>It's showing 'Handler()' is deprecated.</p>
  <pre><code>private void initDelay() {
          new Handler().postDelayed(() -&gt; LaunchNextActivity(), SPLASH_DELAY_IN_MILLIS);
      }
  </code></pre>
  <p>Trying to remove bottom navigation soft keys in android for that using:</p>
  <pre><code>public void FullScreen() {
              View decorView = getWindow().getDecorView();
              int uiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY;
              decorView.setSystemUiVisibility(uiOptions);
          }
  </code></pre>
  <p>Here also showing: 'SYSTEM_UI_FLAG_HIDE_NAVIGATION' is deprecated, 'SYSTEM_UI_FLAG_IMMERSIVE_STICKY' is deprecated, 'setSystemUiVisibility(int)' is deprecated. What are the replacements of all these.</p>
  <p>Below are attached images for better understanding.</p>
  <p><a href="https://i.stack.imgur.com/TX9FC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TX9FC.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/UiWcS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UiWcS.png" alt="enter image description here" /></a></p>