add pause/resume and android implement