adapt android for ios