Android: Fixed problems with sensor events and sound playback.