Example of creating sub-menus and checkable menu items on Android. See post at antew.com
DO WHAT THE HELL YOU WANT TO PUBLIC LICENSE
Version 1, December 2012
Copyright (C) 2012 Antew < antew@antew.com | antew.com >
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE HELL YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE HELL YOU WANT TO.