Creating an NDEF WiFi record using application/vnd.wfa.wsc in Android
问题 As of Android 5.0.0 you can long tap on a WiFi connection and write that connection to a tag ("Write to NFC tag"). You can find the source for that operation here: WriteWifiConfigToNfcDialog.java. The relevant line that takes a WiFi connection and creates an NDEF payload appears to be here: String wpsNfcConfigurationToken = mWifiManager.getWpsNfcConfigurationToken(mAccessPoint.networkId); mWifiManager is an instance of WifiManager , however getWpsNfcConfigurationToken is not part of the API.