title: Switch From Activity to Navigation drawer activity
body: <p>I use Activity in my main Activity. and I would like to go <strong>from my main Activity</strong> to <strong>navigation drawer activity</strong> by clicking button on my main intent.</p>
  
  <p>I created navigation drawer from navdrawer-wizard in android studio.</p>
  
  <p>But i got an error when i click the button.</p>
  
  <p>I use Api level 10. Android support Library v7,v4 is also inside my project.</p>
  
  <p>I use Android studio.</p>
  
  <p>i've debugged that issue it tigger the start activity But it gots and error in logcat like this.</p>
  
  <pre><code>java.lang.RuntimeException: Unable to start activity     ComponentInfo{www.epicmyanmar.com.andropos/www.epicmyanmar.com.andropos.MyActivity}:     android.view.InflateException: Binary XML file line #24: Error inflating class fragment
  </code></pre>
  
  <p>Any help or any suggestion would be appricieate</p>
  
  <p>` </p>
  
  <pre><code>&lt;!-- A DrawerLayout is intended to be used as the top-level content view using match_parent for both width and height to consume the full space available. --&gt;
  `    `&lt;android.support.v4.widget.DrawerLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:id="@+id/drawer_layout"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context="www.epicmyanmar.com.andropos.MyActivity"&gt;
  
      &lt;!-- As the main content view, the view below consumes the entire
           space available using match_parent in both dimensions. --&gt;
      `enter code here`&lt;FrameLayout
          android:id="@+id/container"
          android:layout_width="match_parent"
          android:layout_height="match_parent" /&gt;
  
      &lt;!-- android:layout_gravity="start" tells DrawerLayout to treat
           this as a sliding drawer on the left side for left-to-right
           languages and on the right side for right-to-left languages.
           If you're not building against API 17 or higher, use
           android:layout_gravity="left" instead. --&gt;
      &lt;!-- The drawer is given a fixed width in dp and extends the full height of
           the container. --&gt;
      &lt;fragment android:id="@+id/navigation_drawer"
          android:layout_width="@dimen/navigation_drawer_width"
          android:layout_height="match_parent"
          android:layout_gravity="start"
          class="www.epicmyanmar.com.andropos.NavigationDrawerFragment"
          tools:layout="@layout/fragment_navigation_drawer" /&gt;
  
  &lt;/android.support.v4.widget.DrawerLayout&gt;`
  </code></pre>