Android controller code for prototype 1