nfc

Creating an NDEF WiFi record using application/vnd.wfa.wsc in Android

做~自己de王妃 提交于 2019-12-21 07:08:06
问题 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.

Is Bluetooth OOB pairing really supported in Android?

一笑奈何 提交于 2019-12-21 04:19:38
问题 I am a complete newbie to the world of Android.Please forgive me if my question is too naive. I have been working on a sample application to realize Bluetooth pairing between a Linux Box (FC-21 running Bluez-5.42) and an Android tablet. I am using NFC to transfer the Bluetooth name, address and OOB data from the PC to Android. I am able to send the above data from PC to Android over NFC (beam to be precise) and I am able to parse and decode all the data at the Android side. With the Bluetooth

How to launch app using NFC tag on Windows Phone 8?

穿精又带淫゛_ 提交于 2019-12-20 15:25:50
问题 I got Windows Phone 8 device, few NDEF formatted NFC tags and I'm wondering, is it possible to implement app launching on my WP8 using these tags? I've read thoroughly this article about URI schemes for launching built-in apps for Windows Phone 8, but I haven't found any link related to actual launching of 3rd party apps. I can launch various settings screens, or browser, email, SMS... What is more interesting, that there are at least two NFC tags on WP Store that can "write tags for

What's the difference between enableReaderMode and enableForegroundDispatch?

[亡魂溺海] 提交于 2019-12-20 10:41:50
问题 I found two approaches to let an Android app detect and process NFC tags: NfcAdapter.enableReaderMode(activity, callback, flags, extras) and then receive the tag info in the callback. NfcAdapter.enableForegroundDispatch(activity, intent, filters, techLists) and then receive the tag info in the onNewIntent(intent) activity method. I currently use the second approach, however, I recently discovered the enableReaderMode approach and wonder if it's better to use that to process NFC tags. So what

Unable to claim USB interface (Device or resource busy)

大城市里の小女人 提交于 2019-12-20 10:37:00
问题 I want to use my ACR122U contact-less smart card reader in Ubuntu 14 smarty. So I installed my required packages and drivers. Finally when I want to use the reader I receive the following error: rc@rc-System-Product-Name:~/Desktop/itsme$ sudo nfc-list [sudo] password for rc: nfc-list uses libnfc 1.7.0 error libnfc.driver.acr122_usb Unable to claim USB interface (Device or resource busy) nfc-list: ERROR: Unable to open NFC device: acr122_usb:001:020 rc@rc-System-Product-Name:~/Desktop/itsme$

How to emulate a nfc-tag on an android phone

别来无恙 提交于 2019-12-20 09:58:08
问题 I have an android phone (nexus s, sdk v15) which shall send a string to a development board running in nfc-reader/writer-mode by using tag-emulation. I know this is not officially supported by android, so I could do it natively by accessing the driver directly(?). Is there any example out there where anyone has done this before or an app which does this (and preferably is open source?) I found some stuff on google where it is generally advised not to do this, or where people talk about how it

Android NFC Intents are not starting my activity

牧云@^-^@ 提交于 2019-12-20 09:55:30
问题 I am trying to write a simple application to interact with NFC tags, but I cant seem to get my phone to do anything but trigger the default NFC tag app. I really just want to be able to intercept any tag I scan, determine if it has some data on it, and take action accordingly. Right now my manifest file looks like <uses-sdk android:minSdkVersion="10" /> <uses-feature android:name="android.hardware.nfc" android:required="true"/> <uses-permission android:name="android.permission.NFC"/>

NFC standards (NFC Forum, ISO/IEC, ECMA

試著忘記壹切 提交于 2019-12-20 08:39:14
问题 I am often being asked about standards, the NFC is based on. I summarized my knowledge in the text below. I hope it can be an answer to such questions. Please feel free to correct it by posting comments and replies - I will include it into my text. Since NFC is based on RFID, it is often seen as RFID extension, its form or subset. It is correct because many existing standards from RFID were adopted in the NFC. The NFC base standard for physical layer is NFCIP-1 (ISO 18092 or ECMA 340) - it

Android Open Mobile API Release Difficulties

你离开我真会死。 提交于 2019-12-20 07:44:32
问题 I am using the "org.simalliance.openmobileapi.jar" file from SDK. I copied it to my libs folder and added the dependency like this Case #1: working fine (in debug mode) In app Gradle file I have: provided files('libs/org.simalliance.openmobileapi.jar') Case #2: not working (in release mode - without minifyEnabled) In app Gradle file I have: compile files('libs/org.simalliance.openmobileapi.jar') In case #2 I get the following exception: (java.lang.SecurityException: Access Control Enforcer:

Windows 8 Phone - access to NFC reader?

匆匆过客 提交于 2019-12-20 04:18:55
问题 Short question: Can I read credit card information with a NFC capable Windows Phone 8? Long question: How does NFC with credit cards exatly work? The card (or the phone with wallet function) receives a request via NFC and replies with the cleartext credit card information in some standardised format? The Wallet option then aditionally still props some comfirmation dialog before broadcasting the credit card information? Or is there some handshake encryption going on before hand? Or is there