iOS and Android code for a simple controller