Some sync code on android