title: Extending navigation drawer activity
body: <p>I have created my Navigation Drawer activity. Everything works fine, but I would like to extend it to other activities. <a href="https://github.com/lupajz/bc/blob/master/app/src/com/kulturnepodujatia/DashboardActivity.java" rel="nofollow">https://github.com/lupajz/bc/blob/master/app/src/com/kulturnepodujatia/DashboardActivity.java</a> here is my Navigation Drawer Activity. </p>
  
  <p>If I try to open another activity like for example : </p>
  
  <pre><code>public class Test extends DashboardActivity {
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_test);
  }
  
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
      // Inflate the menu; this adds items to the action bar if it is present.
      getMenuInflater().inflate(R.menu.test, menu);
      return true;
  }
  }
  </code></pre>
  
  <p>I get errors : </p>
  
  <pre><code>03-26 12:14:07.902: E/AndroidRuntime(19266): FATAL EXCEPTION: main
  03-26 12:14:07.902: E/AndroidRuntime(19266): Process: com.kulturnepodujatia, PID: 19266
  03-26 12:14:07.902: E/AndroidRuntime(19266): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.kulturnepodujatia/com.kulturnepodujatia.Test}: java.lang.IllegalArgumentException: No view found for id 0x7f07000b (com.kulturnepodujatia:id/frame_container) for fragment BaseFragment{64ababa0 #0 id=0x7f07000b}
  03-26 12:14:07.902: E/AndroidRuntime(19266):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2215)
  03-26 12:14:07.902: E/AndroidRuntime(19266):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2265)
  03-26 12:14:07.902: E/AndroidRuntime(19266):    at android.app.ActivityThread.access$800(ActivityThread.java:145)
  03-26 12:14:07.902: E/AndroidRuntime(19266):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1206)
  03-26 12:14:07.902: E/AndroidRuntime(19266):    at android.os.Handler.dispatchMessage(Handler.java:102)
  03-26 12:14:07.902: E/AndroidRuntime(19266):    at android.os.Looper.loop(Looper.java:136)
  03-26 12:14:07.902: E/AndroidRuntime(19266):    at android.app.ActivityThread.main(ActivityThread.java:5081)
  03-26 12:14:07.902: E/AndroidRuntime(19266):    at java.lang.reflect.Method.invoke(Native Method)
  03-26 12:14:07.902: E/AndroidRuntime(19266):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
  03-26 12:14:07.902: E/AndroidRuntime(19266):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:607)
  03-26 12:14:07.902: E/AndroidRuntime(19266): Caused by: java.lang.IllegalArgumentException: No view found for id 0x7f07000b (com.kulturnepodujatia:id/frame_container) for fragment BaseFragment{64ababa0 #0 id=0x7f07000b}
  03-26 12:14:07.902: E/AndroidRuntime(19266):    at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:882)
  03-26 12:14:07.902: E/AndroidRuntime(19266):    at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1062)
  03-26 12:14:07.902: E/AndroidRuntime(19266):    at android.app.BackStackRecord.run(BackStackRecord.java:684)
  03-26 12:14:07.902: E/AndroidRuntime(19266):    at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1447)
  03-26 12:14:07.902: E/AndroidRuntime(19266):    at android.app.Activity.performStart(Activity.java:5240)
  03-26 12:14:07.902: E/AndroidRuntime(19266):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2178)
  </code></pre>
  
  <p>Test acitivty has just a textivew in layout. The navigation drawer activity has this layout : </p>
  
  <pre><code>&lt;android.support.v4.widget.DrawerLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/drawer_layout"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:theme="@android:style/Theme.Holo.Light"&gt;
  
      &lt;!-- Framelayout pre zobrazovanie jednotlivých fragmentov --&gt;
      &lt;FrameLayout
          android:id="@+id/frame_container"
          android:layout_width="match_parent"
          android:layout_height="match_parent" /&gt;
  
      &lt;!-- Listview ako menu pre navDrawer --&gt;
      &lt;ListView
          android:id="@+id/list_slidermenu"
          android:layout_width="240dp"
          android:layout_height="fill_parent"
          android:layout_gravity="start"
  
          android:dividerHeight="0dp"
          android:divider="@null"
          android:background="#2B2B2B"
  
          /&gt;
  &lt;/android.support.v4.widget.DrawerLayout&gt;
  </code></pre>