<!-- lang: java --> String bt_address = "00:09:6A:02:76:65"; String[] bt_byte = bt_address.split(":", 6); String reversed_bt_address = String.format("%s:%s:%s:%s:%s:%s", bt_byte[5],bt_byte[4],bt_byte[3], bt_byte[2],bt_byte[1],bt_byte[0]); Log.v(TAG, "reversed_bt_address:"+reversed_bt_address);
獲得New BT address "65:76:02:6A:09:00"java