title: How can we use ActivityCompat in place of Activity
body: <p>I read that we should use Activitycompat instead of Activity but when I'm extending ActivityCompat instead of Activity setContentView is unresolved along with onCreate, how can i use ActivityCompat, and in general how can I use support library feature</p>
  
  <pre><code>public class MainActivity extends ActivityCompat {
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  }  
  </code></pre>