Android Finite-state-machine Resources