Handle android menu button

Closes #946