0

I am following the starter android development guide and trying to add a up bottom for lower level activities. However, I get an null pointer error when executing getActionBar().setDisplayHomeAsUpEnabled(true);

Is it because of my theme (appcompat created by Eclipse automatically) doesn't support this?

How can I resolve it? thanks!

Jason
  • 821
  • 2
  • 16
  • 28
  • Never mind - I think using getSupportActionBar().setDisplayHomeAsUpEnabled(true); resolves it – Jason Nov 20 '14 at 21:45

1 Answers1

0

Using getSupportActionBar().setDisplayHomeAsUpEnabled(true); solves it.

Jason
  • 821
  • 2
  • 16
  • 28