Support pause/resume on android