nfc

Android Read/Write to Multiple Records NDEF NFC

我与影子孤独终老i 提交于 2019-12-13 02:51:35
问题 I'm trying to write and read to/from multiple records in a NDEFMessage. Is my code here right? Also, my process terminates itself when I'm reading the tag. I'm not sure where I went wrong.. Writing part: private NdefMessage getTagAsNdef() { String text123="Hello"; //boolean addAAR = true; String uniqueId = "starbucks.com"; byte[] uriField = uniqueId.getBytes(Charset.forName("US-ASCII")); byte[] payload = new byte[uriField.length + 1]; //add 1 for the URI Prefix payload[0] = 0x01; //prefixes

Android HCE service

守給你的承諾、 提交于 2019-12-13 02:27:59
问题 I have a HCE service which sends data to and from a NFC reader but I was wondering if I can specify the launch settings of my service. I want to specify that my service can only be called if the app is running. If the app is closed the service shouldn't be called. Is this possible or was it intended that the service can always be called? 回答1: Currently you can only specify if the HCE service should be considered for card emulation from the lock-screen or only if the user passed the lock

HCE support for ISO/IEC 14443-3 Type B?

旧城冷巷雨未停 提交于 2019-12-13 01:24:22
问题 The Android's developer guide states that "Support for Nfc-B is optional". I cannot find any more information about Type B HCE. So is it possible to enable Type B support on Android devices? 回答1: From an app developer perspective you should(*) not really care which underlying protocol is used. The application layer protocol (ISO/IEC 7816-4) is the same for ISO/IEC 14443 Type A and Type B. Looking at devices in the field, some devices use Type A for HCE and some seem to use Type B. So it's

NFC-V ICODE SLIX (SL2S2002)

别等时光非礼了梦想. 提交于 2019-12-13 01:22:55
问题 I'm developing an application for managing ICODE SLIX-S tags under android. I'm finding problems regarding the "SET_PASSWORD" as defined in the data sheet (https://www.nxp.com/docs/en/data-sheet/SL2S2002_SL2S2102.pdf page 16). There is already a discussion about the problem(NFC-V SLIX-S write password) but it has not been solved. The problem I think is the format of the command passed to the transceive, I tried different formats but without solution. If someone had resolved in any way, thank

reading NFC tag through tablet

筅森魡賤 提交于 2019-12-13 01:20:10
问题 I want assistance for writing an application for Android Tablet to pass NFC tags over it where it link automatically to social sites. 回答1: At the time of this writing, there are no tablets that support NFC. 回答2: There are USB NFC readers (ACR122U) that in theory could be controlled by an Android 3.1 tablet which supports USB host mode. You'd have to experiment though to be able to talk to the reader, no official support for it atm 来源: https://stackoverflow.com/questions/6326683/reading-nfc

How to read NDEF Msg and Records of NFC tag?

▼魔方 西西 提交于 2019-12-13 00:44:50
问题 I am Working with Reading NDEF Msg and Records Here I have done with Reading ID by using this public class MainActivity extends Activity { // list of NFC technologies detected: private final String[][] techList = new String[][] { new String[] { NfcA.class.getName(), NfcB.class.getName(), NfcF.class.getName(), NfcV.class.getName(), IsoDep.class.getName(), MifareClassic.class.getName(), MifareUltralight.class.getName(), Ndef.class.getName() } }; @Override protected void onCreate(Bundle

Android check if nfc tag is near

独自空忆成欢 提交于 2019-12-13 00:41:22
问题 Is it possible to check (periodically) if a nfc tag is near? I want to put an nfc tag inside a car holder and wenn i take the phone out of the car, the phone should stop sending GPS. All i could find was this: How to find out whether an NFC tag is still in range of an Android now? But in my scenario the Display is off. Is there a way to do this or is there a way to detect when there is no nfc tag? 回答1: Unfortunately you can't when the display is off. Android's reader/writer mode is disabled

Phones that can support Open Mobile API

瘦欲@ 提交于 2019-12-12 20:02:24
问题 I understand that to access SIM/eSE from an Android app we need to install Open Mobile API addon on Android Studio. However, is it true that it will not work on all NFC phones? For example, do some OEM limited access to SIM/eSE? Or are there phones where only custom firmware will work with Open Mobile API? Also, is there a list of phones that support Open Mobile API by default? 回答1: That's correct. The phone needs to implement the Open Mobile API (by means of the smartcard system service) in

Need To Fake an NFC Tag Being Scanned In Android

こ雲淡風輕ζ 提交于 2019-12-12 18:29:17
问题 Ok, I have an app. This app will only complete a task when an nfc tag, any tag, is scanned. Only problem, I do not have any nfc tags. And I am trying to eliminate needing a card anyway, So What I need is a way to "Fake/Make It Look" Like an nfc tag has been scanned. I can write apps and such so all I really need is the core code to make android think a tag was scanned. I can do the rest. I just need to be able to push a button, then android think that a tag was scanned so that the app will be

Samsung Nexus S vs HTC - NFC Intent Filter + AAR

蓝咒 提交于 2019-12-12 18:26:28
问题 I save the AAR on my NFC-Tag. If I scan the TAG with the Nexus S (Android 4.1.1), i get the NfcAdapter.ACTION_NDEF_DISCOVERED and the NFCReaderActivity directly starts. If I do the same with the HTC X (Android 4.0.3), the application starts but I just get the android.intent.action.MAIN and so the NFCReaderActivity doesn't show up and the Tag isn't scanned. This works on Samsung Nexus S but not on HTC: <activity android:name=".activities.NFCWriterActivity"></activity> <activity android:name="