nfc

Reading a NFC Mifare card with NXP Reader Library

柔情痞子 提交于 2020-02-21 06:16:46
问题 I'm trying to read the content of a Mifare Ultralight card using the NFC Reader Library. I'm totally new with NFC and I'm using this github repository to start. The code in this repo allows to detect which type of card is detected (Mifare, Mifare ultralight ...) and read the UID of the card. I added this code in order to read the content of a Mifare ultralight card: uint8_t bBufferReader[96]; memset(bBufferReader, '\0', 0x60); PH_CHECK_SUCCESS_FCT(status, phalMful_Read(&alMful, 4,

Android: how do you disable that your app reopens when scanning a NFC tag?

依然范特西╮ 提交于 2020-02-20 05:43:29
问题 I'm writing an android application that reads data from a Mifare Classic card (4k). I have edited my AndroidManifest.xml file so that the app gets started (or I can choose another app that uses NFC). But when my app is openend and I hold my card next to my phone, it gives the popup again where I can choose which app to open. After some research I have found that I need to edit the function: onNewIntent , because this is the function that gets called when you scan a tag when your app is

Host Card Emulation on Nexus 7 2012

一曲冷凌霜 提交于 2020-02-02 08:36:26
问题 I'm trying to test out the new Host Card Emulation features in KitKat, but the only KitKat device with NFC that I have at the moment is a 2012 Nexus 7. It does support card emulation through Google Wallet, and I can send and receive data to the two Master Card AIDs that it uses. However, when I try to implement my own HostApduService to handle communications with my own custom AID, Android doesn't route any APDUs to my service. I then tried to call CardEmulation.isDefaultServiceForAid to see

Possibility for Fake NFC(Near Field Communication) Launch

荒凉一梦 提交于 2020-02-02 03:19:30
问题 I am working on Near Field Communication for reading data from NFC Tags. I don't have NFC supported Android Mobile and NFC Tags to test the Application i created . I want to know whether it is possible to Launch my App through intent filter (Should assume NFC tag is detected from my device) My Manifest Snippet : <activity android:name=".ServerActivity" android:label="@string/app_name" android:screenOrientation="portrait" > <intent-filter> <action android:name="android.nfc.action.NDEF

App called “NFC services” replacing my own app

自闭症网瘾萝莉.ら 提交于 2020-01-25 23:43:30
问题 I want my Android app to start after scanning an NFC tag, so to make some tests I modified the tiapp.xml of Favebooks (a simple tutorial app for Titanium) by adding the following lines: <android xmlns:android="http://schemas.android.com/apk/res/android"> <manifest> <uses-permission android:name="android.permission.NFC"/> <uses-permission android:name="android.permission.CALL_PHONE"/> <uses-sdk android:minSdkVersion="14"/> <uses-feature android:name="android.hardware.nfc" android:required=

App called “NFC services” replacing my own app

天大地大妈咪最大 提交于 2020-01-25 23:41:53
问题 I want my Android app to start after scanning an NFC tag, so to make some tests I modified the tiapp.xml of Favebooks (a simple tutorial app for Titanium) by adding the following lines: <android xmlns:android="http://schemas.android.com/apk/res/android"> <manifest> <uses-permission android:name="android.permission.NFC"/> <uses-permission android:name="android.permission.CALL_PHONE"/> <uses-sdk android:minSdkVersion="14"/> <uses-feature android:name="android.hardware.nfc" android:required=

App called “NFC services” replacing my own app

吃可爱长大的小学妹 提交于 2020-01-25 23:41:32
问题 I want my Android app to start after scanning an NFC tag, so to make some tests I modified the tiapp.xml of Favebooks (a simple tutorial app for Titanium) by adding the following lines: <android xmlns:android="http://schemas.android.com/apk/res/android"> <manifest> <uses-permission android:name="android.permission.NFC"/> <uses-permission android:name="android.permission.CALL_PHONE"/> <uses-sdk android:minSdkVersion="14"/> <uses-feature android:name="android.hardware.nfc" android:required=

Read UID from NFC mifare tag iOS 13

蹲街弑〆低调 提交于 2020-01-25 08:14:39
问题 I'm trying to read the UID for a mifare tag. Looking at examples, I see the following method a lot: func tagReaderSession(_ session: NFCTagReaderSession, didDetect tags: [NFCTag]) { if case let NFCTag.miFare(tag) = tags.first! { print(tag.identifier as NSData) } } However when putting that into my project, the method is not called. I also noticed xCode giving a warning that this nearly matches an optional protocol which is the same except it uses NFCNDEFTag instead of NFCTag .. When I try

Set Timer To Know How Fast The NFC Read The Tag

我是研究僧i 提交于 2020-01-25 06:48:08
问题 I'm new to android, and get the project that I need to know how fast the the NFC Tag from the phone read the tag with timer. It's been 4 days and I still try to figure it out. So this is how it works in my mind. TAG > Detected (timer start) > Information From Tag Show Up > Timer Stop. Is it possible ? I know it will get around 0.1 miliseconds. I already can make the timer start when the tag detected, but it dont stop. Here the java code : public class Read extends Activity { NfcAdapter

Reading and writing to NFC

不打扰是莪最后的温柔 提交于 2020-01-25 06:16:25
问题 I am writing an Android application to read and write to a tag. When I read everything's works fine, when i try to save data on the nfc tag, tag first read data and opens again activity, how to block reading from intent and save correctly data? I have an activity that runs 4 fragments, the reading code is in the activity and the mechanism of writing is called from fragment 回答1: For writing I would not use the enableForegroundDispatch method, it misleads the user to move the card out of range