Q:

drawer icon in Actionbar is show me a error when I click then

Im using Android Studio 1.2
The icon drawer in actionbar is give me an error when I click then but is work fine If I open it sliding with the hand from the left to the rigth. 
this is my layout where I have my drawer list from the left; the list of options is in listView "mimenu"
<RelativeLayout xmlns:android="xxxxxx"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"

    android:layout_height="match_parent"
    android:paddingLeft="0dp"
    android:paddingRight="0dp"
    android:paddingTop="0dp"
    android:paddingBottom="0dp"
    android:background="#ffffff"
    tools:context="xxxx">

    <android.support.v4.widget.DrawerLayout
        android:id="@+id/drawerLayout"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="#ffffffff">

    <LinearLayout
        android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"

        >

        <ListView
            android:id="@+id/listaxx"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"

            ></ListView>

    </LinearLayout>

        <RelativeLayout
            android:layout_width="fill_parent"

            android:layout_height="match_parent"
            android:layout_gravity="left"

            >

            <ListView
                android:id="@+id/mimenu"
                android:layout_width="match_parent"
                android:layout_below="@+id/profileBox"
                android:choiceMode="singleChoice"
                android:layout_height="match_parent"
                android:background="#ffffff"
                android:divider="#eee"
                android:dividerHeight="1dp"
                />

        </RelativeLayout>

    </android.support.v4.widget.DrawerLayout>

</RelativeLayout>

In my class java
    public class ListaPat extends Activity {

        public ArrayList<Pat> lstPat= new ArrayList<Pat>();
        private Pat_Adaptador adaptador;
        private LinearLayout linearLayout;

        ArrayAdapter<CharSequence> navigationDrawerAdapter;
        ListView leftDrawerList;
        String[] leftSliderData = new String[]{"test1","test2"};

        private DrawerLayout mDrawerLayout;
        private ActionBarDrawerToggle mDrawerToggle;
        @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);

            setContentView(R.layout.activity_lista_patx);

            mDrawerLayout = (DrawerLayout) findViewById(R.id.drawerLayout);

            leftDrawerList = (ListView)findViewById(R.id.mimenu);
            navigationDrawerAdapter= new ArrayAdapter<CharSequence>(  ListaPat .this, android.R.layout.simple_list_item_1, leftSliderData);
            leftDrawerList.setAdapter(navigationDrawerAdapter);

            getActionBar().setDisplayHomeAsUpEnabled(true);
            getActionBar().setHomeButtonEnabled(true);

            mDrawerToggle = new ActionBarDrawerToggle(
                    this,
                    mDrawerLayout,
                    R.drawable.ic_drawer,
                    R.string.drawer_open,
                    R.string.drawer_close) {

                public void onDrawerClosed(View view) {
                    super.onDrawerClosed(view);

                }

                public void onDrawerOpened(View drawerView) {
                    super.onDrawerOpened(drawerView);

                }
            };

            RellenarNoticias();
            InicializarLista();

            mDrawerLayout.setDrawerListener(mDrawerToggle);

            getActionBar().setDisplayShowHomeEnabled(true);
            getActionBar().setHomeButtonEnabled(true);

            mDrawerToggle.syncState();

        }

 public boolean onOptionsItemSelected(MenuItem item) {

        switch (item.getItemId()) {
            case android.R.id.home:
                if(mDrawerLayout.isDrawerOpen(leftDrawerList)) {
                    mDrawerLayout.closeDrawer(leftDrawerList);
                }
                else {
                    mDrawerLayout.openDrawer(leftDrawerList);
                }
                return true;
            default:
                return super.onOptionsItemSelected(item);
        }

    }

A:

I fix the problem changing this function 
 public boolean onOptionsItemSelected(MenuItem item) {

        switch (item.getItemId()) {
            case android.R.id.home:
                if(mDrawerLayout.isDrawerOpen(leftDrawerList)) {
                    mDrawerLayout.closeDrawer(leftDrawerList);
                }
                else {
                    mDrawerLayout.openDrawer(leftDrawerList);
                }
                return true;
            default:
                return super.onOptionsItemSelected(item);
        }

    }

New function that fix the problem
@Override public boolean onOptionsItemSelected(MenuItem item) {if (mDrawerToggle.onOptionsItemSelected(item)){ return true; } return super.onOptionsItemSelected(item); }  

