8

Adding listener to ActionBar item, onOptionsItemSelected NullPointerException

view full story
linux-howto

http://stackoverflow.com – *Answered!: * It turns out that you need to have title for an item even if you have an icon for it. I am currently implementing (Sherlock)Action Bar in my application. I currently have an on screen button that refreshes my screen view and I want to move this button to be an item in my action bar. Log of onOptionsItemSelected is not showing up in LogCat but Created menu is showing up. I do not know why I am getting a null pointer and can't find in the error log where the null is happening. The app only crashes when I click on the refresh button in the action bar and does everything else fin (HowTos)