lots of android pause/resume fixes