nfc

Android Nfc Sample Demo - reads only fake information from the Tag

怎甘沉沦 提交于 2019-12-18 03:47:06
问题 I just installed the Nfc Demo from google, but it doesn´t read the information from the Tag.-> It just provides some fakeTag information. Has anybody an idea, where I can change the sample to read from the nfc Tag? Or has somebody a working nfc demo for the nexus? If we could bring a nfc demo to work, many people would have the possibility to develop a nfc demo on their own. Best regards Alexander 回答1: I had the same problem getting tag id. I got some B@2346323143 style data to screen. I got

Android HCE: are there rules for AID?

人走茶凉 提交于 2019-12-18 02:57:54
问题 I'm trying to use an ACR122 NFC reader to select an application emulated in one Nexus 5 using Android Host Card Emulation. However, small AIDs are not recognized. My goal is to use a three byte long AID, as I do in a DESfire card. My first goal is only to be able to do a SELECT command. My test app uses the following configuration for AIDs: <host-apdu-service xmlns:android="http://schemas.android.com/apk/res/android" android:description="@string/service_descr" android:requireDeviceUnlock=

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 there an NFC API for the Smartwatch 3 (SWR50)

十年热恋 提交于 2019-12-18 01:19:10
问题 Just to be sure and have clarification of that at first, is the NFC of the Smartwatch 3 just an embedded tag or is it a theoretically fully functioning NFC-chip? Hoping it's not just a tag, we want to build an Android Wear app using NFC and for this the biggest question is: Is there (gonna be?) a API to use the NFC chip of the SWR50? If not is there any other way to activate it, or maybe might an updated version of Android Wear bring support for the chip to the smartwatch? Any help is

Can an Android NFC phone act as an NFC tag?

有些话、适合烂在心里 提交于 2019-12-17 21:27:31
问题 From what I have understood so far, an NFC phone will act as an NFC reader which will read data from an NFC tag. Now my question is, can we switch this around? Can we make an Android NFC phone behave as the tag which an NFC reader will get data from? Thanks for your assistance. 回答1: At this time, I would answer "no" or "with difficulty", but that could change over time as the android NFC API evolves. There are three modes of NFC interaction: Reader-Writer: The phone reads tags and writes to

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

Android / NFC: Get Tag in onCreate() without new Intent

痞子三分冷 提交于 2019-12-17 19:37:17
问题 I am working on an NFC-application. To start my app, I am using a NDEF-tag with an AAR NDEF Record inside. This works fine. But now I want to read the tag content with the app directly. How can I do this? (It already works, when I remove the tag from the phone and touch it again, but I want to eliminate this step.) Update: Some more details Ok, to make it more clear, here are some parts of my current code. private NfcAdapter nfcAdapter; private static final int PENDING_INTENT_TECH_DISCOVERED

Start an Android app/intent from an NFC tag?

徘徊边缘 提交于 2019-12-17 18:37:20
问题 On an Android device equipped with NFC reader hardware, is there any in-built support to use the NFC tag contents to fire off an intent (e.g. starting an app)? I am asking whether the support is there by default, I know I could build my own app to listen for NFC events and handle them. All the NFC tag writing apps I've seen appear to only support text/URLs/contacts, and the contacts support seems useless as many are far too big to fit in a tag. 回答1: According the the Android Developer site,

How to read and write Android NFC tags?

最后都变了- 提交于 2019-12-17 17:46:11
问题 I followed some tutorial using the adam rocker source code for my NFCTest. I want to be able to read and write NFC tags and also launch an application. 回答1: The NDEF Tools for Android utility project helps doing the following Detect, then Read or write, or Beam (push) NFC content The project also includes data bindings for all standardized NDEF record types, which really simplifies things compared to working with the (byte-array-based) NDEF classes included in the Android SDK. Also see the

Get UID of Mifare Ultralight with SCL010

早过忘川 提交于 2019-12-17 16:30:58
问题 I want get the UID of the Mifare Ultralight NFC tag. In Java I have this code: TerminalFactory factory = TerminalFactory.getDefault(); List<CardTerminal> terminals = factory.terminals().list(); System.out.println("Terminals: " + terminals); CardTerminal terminal = terminals.get(0); Card card = terminal.connect("*"); System.out.println("card: " + card); CardChannel channel = card.getBasicChannel(); ResponseAPDU answer = channel.transmit(new CommandAPDU(0xFF, 0xCA, 0x00, 0x00, 0x00)); byte[]