title: android studio uses or overrides a deprecated API
body: <p>hi everyone i just start make an app and that error show up &quot;&quot; uses or overrides a deprecated API.
  Note: Recompile with -Xlint:deprecation for details. &quot;&quot; what that mean and how can i recompile with -Xlint</p>
  <p>my code</p>
  <pre><code>        import androidx.appcompat.app.AppCompatActivity;
          import android.content.Intent;
          import android.os.Bundle;
          import android.os.Handler;
          public class StartActivity extends AppCompatActivity {
          private static int timeOut = 1800;
          @Override
          protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_start);
          final Handler handler = new Handler();
          handler.postDelayed(new Runnable() {
              @Override
              public void run() {
                  Intent i = new Intent(StartActivity.this, MainActivity.class);
                  startActivity(i);
                  finish();
  
              }
          }, timeOut);
      }
  }
  </code></pre>