Android State-machine Resources