A friend with an iPhone is at your door and needs your Wi-Fi. No typing the password: your Android phone can show a code and their iPhone scans it.