結果 : code for both android and ios