android-beam

Simulate NFC tag on an Android phone

♀尐吖头ヾ 提交于 2021-02-08 04:52:10
问题 I am working with NFC in Android. I have done things with NFC tags and Android Beam, but I am wondering if is possible to use a Android Phone like a NFC tag. One problem about it is that when I put near the two phones, Android Beams starts. Also, I have not found information about how I can simulate an NFC tag. Is it possible? PS. Sorry for mi english. 回答1: This was already discussed (http://stackoverflow.com/questions/6138077/can-an-android-nfc-phone-act-as-an-nfc-tag) and the conclusion is

Host-based Card Emulation - Trigger a reader app when HCE is read on reader device

北城以北 提交于 2021-02-05 11:21:25
问题 NFC tags can trigger an NFC reader app available on the phone, but HCE does not trigger any reader app. However, if I first open the reader app, then it works normally and, hence, can read the HCE emulated tag. I need a solution where HCE can open or prompt to choose the reader app. Is this possible with HCE? Why does Android not prompt to open an NFC reader app when detecting a HCE device? 回答1: No, a HCE app on one Android device cannot be used to trigger (launch) a reader app on another

Host-based Card Emulation - Trigger a reader app when HCE is read on reader device

不羁的心 提交于 2021-02-05 11:21:10
问题 NFC tags can trigger an NFC reader app available on the phone, but HCE does not trigger any reader app. However, if I first open the reader app, then it works normally and, hence, can read the HCE emulated tag. I need a solution where HCE can open or prompt to choose the reader app. Is this possible with HCE? Why does Android not prompt to open an NFC reader app when detecting a HCE device? 回答1: No, a HCE app on one Android device cannot be used to trigger (launch) a reader app on another

Disable Android Beam for selected activities

我们两清 提交于 2020-01-02 17:15:09
问题 I'm working with NFC on Android, specifically with Android Beam. My question is: is it possible to disable Android Beam support for an activity? This is what some system applications do, such as messaging: if another phone is put close, my phone vibrates but the "Touch to beam" screen doesn't appear and the other phone doesn't receive anything. EDIT: Calling: NfcAdapter.setNdefPushMessage(NdefMessage message, Activity activity, Activity... activities) in onResume() with a null message should

android nfc - mifare classic 1k Increment operation tranceive failed

£可爱£侵袭症+ 提交于 2019-12-25 11:54:29
问题 I want to store an integer value and increment or decrement it with API function. I have readed the card with an utility and this is the content of block 5: It seems that there is not any value block. This is my code: int sector = 5; this.mClassic.connect(); boolean success = this.mClassic.authenticateSectorWithKeyA(sector, MifareClassic.KEY_DEFAULT ); if(success){ int firstBlock = mClassic.sectorToBlock(sector); Log.i("MIFARE CLASSIC", "first block of the given sector:" + firstBlock); //set

android nfc - mifare classic 1k Increment operation tranceive failed

纵然是瞬间 提交于 2019-12-25 11:54:21
问题 I want to store an integer value and increment or decrement it with API function. I have readed the card with an utility and this is the content of block 5: It seems that there is not any value block. This is my code: int sector = 5; this.mClassic.connect(); boolean success = this.mClassic.authenticateSectorWithKeyA(sector, MifareClassic.KEY_DEFAULT ); if(success){ int firstBlock = mClassic.sectorToBlock(sector); Log.i("MIFARE CLASSIC", "first block of the given sector:" + firstBlock); //set

How to a send SNEP GET request from Android

谁说胖子不能爱 提交于 2019-12-21 23:20:05
问题 I have an NFC reader ACS ACR122U and I want to send data from my Android phone to it. I have found many examples on how to connect my two devices in P2P mode and how to send data from my phone to the ACR122U, but my desktop server (ACR122U) always receives a SNEP PUT request. I would send a GET request but I can find only examples that use Android built in NDEF system without specifing PUT or GET request. How can I package and send a SNEP GET request from my Android device to an ACR122U? 回答1:

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

Host card emulation on Android (4.4 / KitKat and above) with Nexus 5

那年仲夏 提交于 2019-12-18 01:19:56
问题 I'm trying to emulate an NFC tag with my Nexus 5 according to this document, but my service is never invoke. Should I turn off Android beam? I'd like to emulate a simple tag containing a url. The reader is a Nexus 7 (2012) and I've figured out the process like a simple scan of a NFC tag using Android beam on Nexus 7. In addition I'm a bit confused about aid-filter name. Is there a list of them? I'm sure that I don't understand something. Thanks 回答1: First of all (though this does not directly

Is it possible to with one touch two Android devices exchange data via NFC?

你说的曾经没有我的故事 提交于 2019-12-17 20:37:44
问题 I want to create an application to exchange information between 2 devices via NFC. I know how to make one mobile send information to the other using Android Beam. What I don't know is how two phones could send data to each other with just one touch. Is this possible? If yes, how? 回答1: That depends on what you are trying to achieve and what Android version(s) you are using: Both devices with Android < 4.0 Both devices can send one NDEF message each with no user interaction required. The