title: Do not request Window.FEATURE_SUPPORT_ACTION_BAR
body: <p>I have a LoginActivityclass(TabActivity) which have following code to cover whole mobile screen</p>
  
  <pre><code>@Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          requestWindowFeature(Window.FEATURE_NO_TITLE);
          getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                  WindowManager.LayoutParams.FLAG_FULLSCREEN);
  
          FacebookSdk.sdkInitialize(getApplic
  </code></pre>
  
  <p>Now I want to go to another MainActivityclass(AppCompatActivity) using Intent which have toolbar. Its code is-</p>
  
  <pre><code>@Override
  protected void onCreate(Bundle  savedInstanceState) {
       super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
      toolbar = (Toolbar) findViewById(R.id.toolbar);
      setSupportActionBar(toolbar);
  </code></pre>
  
  <p>XML-</p>
  
  <pre><code>&lt;android.support.design.widget.AppBarLayout
      android:layout_height="wrap_content"
      android:layout_width="match_parent"
      android:theme="@style/AppTheme.AppBarOverlay"&gt;
  
      &lt;android.support.v7.widget.Toolbar
          app:contentInsetRight="@dimen/fab_margin"
          android:id="@+id/toolbar"
          android:layout_width="match_parent"
          android:layout_height="?attr/actionBarSize"
          android:background="?attr/colorPrimary"
          app:popupTheme="@style/AppTheme.PopupOverlay" /&gt;
  
  &lt;/android.support.design.widget.AppBarLayout&gt;
  </code></pre>
  
  <p>It is working fine while I am not opening  MainClass using Intent, but I want t o open MainActivityClass there is an error -</p>
  
  <p>This Activity already has an action bar supplied by the window decor. Do not request <code>Window.FEATURE_SUPPORT_ACTION_BAR</code> and set <code>windowActionBar</code> to false in your theme to use a Toolbar instead.......</p>