nfc

NFC P2P tag intercept

本小妞迷上赌 提交于 2019-12-12 05:41:08
问题 I am building an Android app using Eclipse and Android SDK. I would like to implement an NFC P2P function in my app in the sense that when you place the 2 phones back to back, both send a string and receive a string automatically. This would of course happen in a separate activity. I have managed to send a custom tag (String) but have been unable to intercept it and use it afterwards in the app code. How can I do this? This is what I have so far: public class MainActivity extends Activity {

Writing multiple data types in NFC tags in a single tap

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 05:17:01
问题 Is it possible to write more than one data type (like two urls or one url and one text) into a NFC tag from Android in a single tap? 回答1: You can, but when you scan a tag, it can only have one data type that Android uses to determine what type of tag it is. This data type is determined by the first NDEF record in your NDEF message. Android assigns a MIME type or URI to this record so it can figure out which application is best to start to handle the tag. So, if you write a text record and URI

Adding the Open Mobile API library to an Android device to get APDU-based access to the SIM

…衆ロ難τιáo~ 提交于 2019-12-12 05:07:28
问题 I have a device without NFC. This device also does not support the Open Mobile API. I need access to the SIM applet on that device. Now I wonder if I could add that functionality...If I have a copy of the Open Mobile API library, would it work if pushed that Open Mobile API library to my device through ADB? Could I then exchange APDUs with my SIM applet? 回答1: No, that won't work. The Open Mobile API library is only an interface to the Open Mobile API service ("SmartcardService"). Thus, the

Can someone point me to really good NFC guidebook links and material online? [closed]

自闭症网瘾萝莉.ら 提交于 2019-12-12 05:02:06
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last month . I am trying to understand this technology and need really good tutorial resources. The ones I have found are not detailed enough. 回答1: NFC has several modes: card reader/writer mode, card emulation mode and peer-to-peer mode. Furthermore, NFC in mobile devices makes use of particular data format: NDEF. Before you

Turning off the buzzer on NFC reader ( NFC ACR122U) in Java

杀马特。学长 韩版系。学妹 提交于 2019-12-12 04:21:45
问题 I am using the ACR122U NFC reader in a java program that uses NFC cards. But by default the reader buzzes when it reads a card. I am trying to turn it off by without success the NFC reader documentation (found here: http://www.acs.com.hk/download-manual/419/API-ACR122U-2.03.pdf )shows that you can turn off the buzzer. But I am having trouble writing a java method for it. As you can see my class already has methods that communicate with the NFC reader. But I have be unable to convert the

Can we download a payment application that uses HCE in phones with lower than Android Kit-Kat 4.4.x?

懵懂的女人 提交于 2019-12-12 04:15:19
问题 I understand from the official android web site https://developer.android.com/about/versions/kitkat.html which says that " Android 4.4 introduces new platform support for secure NFC-based transactions through Host Card Emulation (HCE), for payments,... " that we can not use HCE in the devices lower than Android Kit-Kat 4.4.x. But I want to ask if we can download an Android application which uses/contains HCE and its related classes on the device which has a version that lower than Android Kit

How to make android application listen to specific NFC chip? [duplicate]

无人久伴 提交于 2019-12-12 03:39:24
问题 This question already has answers here : How to use NFC ACTIONS (5 answers) Closed 4 months ago . I'm creating application that do some action if hit NFC chip , I know the following information about NFC in Android please correct me if I am wrong you can't register actions of the NFC to receiver in the manifest file , only activities . each NFC chip has it's own unique id . what I want to do is while the Application is in the background or it's closed , if I hit NFC chip with id (ex 1234) my

P2P in Android using Open NFC virtual device

做~自己de王妃 提交于 2019-12-12 03:22:36
问题 I am a student, working on a Master's project. I want to create an app using NFC P2P. I am trying to emulate P2P mode on android sdk on Windows. I followed the steps provided in Open NFC Compilation quick HOWTO on the Android edition page (http://open-nfc.org/wp/editions/android/). I configured the two devices and enabled NFC using IP as 10. 0.2.2. I used the simulator and connection center to link up two open nfc virtual devices(API 10) in p2p mode but was not successful. Please let me know

Android : How to change NFC protocol priority?

China☆狼群 提交于 2019-12-12 03:08:59
问题 I have my own Android app (App A) which reads and writes NFC tags and ISO-14443 Type A tags. It works well on many Android devices. I want to give the role of ISO-14443 tag to my Nexus5, so I implemented my own HCE (Host Card Emulation) application (App B) on my Nexus5. When I touch the Nexus5 on an external NFC reader (which uses ISO 14443), it works perfectly. However, when I touch the Nexus5 (App B) on a Nexus7 (running App A), p2p (Android beam) data exchanging sequences start. Even after

Method replys unplugged NFC readers

风格不统一 提交于 2019-12-12 02:56:56
问题 I currently use pcsc-sharp to read ids from NFC tags. I got this methode to lists all available readers. But this replys me all readers I ever used. There are also old readers listed that aren´t plugged in. Does anyone know how to fix that? public void SelectDevice() { List<string> availableReaders = this.ListReaders(); this.RdrState = new Card.SCARD_READERSTATE(); readername = availableReaders[0].ToString(); this.RdrState.RdrName = readername; } public List<string> ListReaders() { int