ndef

Android application to mimic a physical RFID card

ぐ巨炮叔叔 提交于 2019-12-02 17:10:52
Is it possible for an Android application to send a previously stored RFID card ID to a NFC reader? The aim would be to use an Android device to enable access to a room instead of a physical RFID card. Having read a lot of other threads about NFC/RFID & card-emulation, I came to the conclusion it was not available for now in Android but I'm still kinda confused if it apply to this particular case. Can't the application simply send the card ID within a NDEF message or an APDU command or I'm just completely dreaming? Well, strictly speaking. For what you want to do you don't need card emulation.

Defining a NDEF Message

前提是你 提交于 2019-12-02 13:52:18
问题 I am working on a Python project with my Raspberry Pi and the RFID-RC522 board. As NFC tags I use NXP NTAG213. My plan now is to store links on the tags. I can read/write on them without a problem. But I don't understand how to define the NDEF header for the stored data on the tags. When I write a link on the tags with my smartphone and read it with my program the stored data on the tag looks like this: The NDEF header for the URL "http://www.gmx.at" is [3, 11, 209, 1, 7, 85, 1, ... (Data)] I

Android app to add mutiple record in NFC tag

北战南征 提交于 2019-12-02 10:08:14
问题 everyone, I am a beginner of developing android app, currently I need to write some data into a NFC tag to check my own NFC reader program, however, those app I can try can only write one record into the tag, which do not match with my requirement to have several record inside and an AAR record at the end, so I would like to ask if anyone know any app which can provide this functionality or anyone has written such a program before?Thank you! public class Writer extends Activity { NfcAdapter

Is there a way to create an ACTION_NDEF_DISCOVERED intent from code

╄→гoц情女王★ 提交于 2019-12-02 09:25:31
For an app i'm writing i am wondering if it is possible to create an ACTION_NDEF_DISCOVERED intent from code. Normally this intent is created by the system when reading an ndef formatted tag. It contains a parcableextra of the type Tag. The creation of the intent is probably easy but can you also create a Tag from code or is that not supported by the class as i suppose. The goal is to broadcast a virtual tag with an ndef record to the system that then can be handled by an app that calls on the ACTION_NDEF_DISCOVERED intent. You could get a mock tag object instance using reflection. Something

Android NFC Intent-filter for all type

こ雲淡風輕ζ 提交于 2019-12-02 07:51:43
问题 I would like to create an Android app that handle all of the NFC event like NDEF, TECH and TAG discovered for all categories and all data types. These intent filters are in my Android Manifest file: <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> <intent-filter> <action android:name="android.nfc.action.NDEF_DISCOVERED" /> <action android:name="android.nfc.action.TECH_DISCOVERED" /> <action

Launch Specific App when NFC is discovered

微笑、不失礼 提交于 2019-12-02 04:44:44
问题 I am using NFC in my app and it is working fine. However I want to make sure that only my app is launched and no other App is there to handle the intent. Following is the code for it in my Manifest file: <activity android:name="com.mypackage.name.BeamActivity"> <intent-filter> <action android:name="android.nfc.action.NDEF_DISCOVERED" /> <category android:name="android.intent.category.DEFAULT" /> <data android:mimeType="text/plain" /> </intent-filter> </activity> I have another sample app on

Android NFC Intent-filter for all type

我的梦境 提交于 2019-12-02 04:31:30
I would like to create an Android app that handle all of the NFC event like NDEF, TECH and TAG discovered for all categories and all data types. These intent filters are in my Android Manifest file: <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> <intent-filter> <action android:name="android.nfc.action.NDEF_DISCOVERED" /> <action android:name="android.nfc.action.TECH_DISCOVERED" /> <action android:name="android.nfc.action.TAG_DISCOVERED" /> <category android:name="android.intent.category.DEFAULT"

Android app to add mutiple record in NFC tag

烂漫一生 提交于 2019-12-02 03:55:54
everyone, I am a beginner of developing android app, currently I need to write some data into a NFC tag to check my own NFC reader program, however, those app I can try can only write one record into the tag, which do not match with my requirement to have several record inside and an AAR record at the end, so I would like to ask if anyone know any app which can provide this functionality or anyone has written such a program before?Thank you! public class Writer extends Activity { NfcAdapter mAdapter; PendingIntent mPendingIntent; IntentFilter mWriteTagFilters[]; boolean mWriteMode; Tag

Launch Specific App when NFC is discovered

匆匆过客 提交于 2019-12-01 22:46:09
I am using NFC in my app and it is working fine. However I want to make sure that only my app is launched and no other App is there to handle the intent. Following is the code for it in my Manifest file: <activity android:name="com.mypackage.name.BeamActivity"> <intent-filter> <action android:name="android.nfc.action.NDEF_DISCOVERED" /> <category android:name="android.intent.category.DEFAULT" /> <data android:mimeType="text/plain" /> </intent-filter> </activity> I have another sample app on my phone which is detecting NFC Intent and providing me Intent Chooser. Following is the code for it in

Not able to format NFC card using NdefFormatable

拥有回忆 提交于 2019-12-01 12:47:32
I am using NdefFormatable class to format my NFC card. The code is like: NdefFormatable formatable=NdefFormatable.get(tag); But i get formatable reference as null. I checked the code that is run inside the get(tag) method. It checks: if (!tag.hasTech(TagTechnology.NDEF_FORMATABLE)) return null; I ran "tag.getTechList()" for my tag. I got: android.nfc.tech.NfcA android.nfc.tech.Ndef I was able to format this card using Trigger application. What can be done to format this. The NdefFormatable and the Ndef tag technologies are mutually exclusive. Either your tag is not yet NDEF formatted (i.e. it