I would like to create a Drawer with an ActionBarDrawerToggle .
I'm following this tutorial !
My only change is that I am extending FragmentActivity
and not a Activity
as the example.
When I execute, a NullPointer
occurs on the following line:
getActionBar().setDisplayHomeAsUpEnabled(true);
Because getActionBar()
is null !.
Would anyone know how to put ActionBarDrawerToggle
into FragmentActivity
?