Changing switch to if statements due as of ADT14, resource fields are no longer constants: http://stackoverflow.com/questions/8387777/what-is-migrate-android-code