nfc

Illegal character in NDEF URI payload

给你一囗甜甜゛ 提交于 2019-12-08 04:48:51
问题 I'm writing NFC based app that would scan a NFC tag with a Url. Once, the tag is scanned, the app should retrieve information from a database and display it in a ListView. The error occurs when I scan the NFC tag. Error in http connection java.lang.IllegalArgumentException: Illegal character in scheme at index 0: ??http://abc.com/~090123/get_items.php The logcat displays some weird ?? characters before http:// . I'm writing the Url in the tag using following code: private boolean writeTag(Tag

How send NfcA command to the MIFARE card?

限于喜欢 提交于 2019-12-08 04:26:13
问题 I'm writing an Android application. I'm trying to send NfcA low-level commands (in my case: HALT and WAKE-UP) to my Mifare Plus S card. The NfcA tech is for "low-level" access to ISO 14443 Type A tags (i.e. the proprietary protocol as mentioned in ISO 14443-3). This is part of my code: protected void onNewIntent(Intent intent) { if (NfcAdapter.ACTION_TAG_DISCOVERED.equals(intent.getAction())) { tagFromIntent = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG); UID = Utils.byteArrayToHexString

Transceive failed on Galaxy S3 with a NFC-B card

∥☆過路亽.° 提交于 2019-12-08 04:14:21
问题 I am working on an application for Android reading a contactless smart card but I have some problems with my Galaxy S3. Before to describe problems, I need to precise that on a PC, I can communicate perfectly with the card using the smartcardio API in Java and NFC readers from different manufacturers. This card is detected as supporting technologies "IsoDep" and "NfcB" by the NFC stack. However, when I send my apdu command with "transceive", I get an exception "Transceive failed". I have

“GET PROCESSING OPTIONS” always 6700(wrong Lc or Le)

╄→尐↘猪︶ㄣ 提交于 2019-12-08 03:54:54
问题 I'm trying to read a smartcard via my LG P710 Optimus L7 2. I'm following this tutorial I can select the "1PAY.SYS.DDF01" directory I can select the Application But I can't perform an "GET PROCESSING OPTIONS" It always result in an 6700 error (Lc or Le wrong) here is my code NfcAdapter mNFCAdapter; Intent intent; PendingIntent pendingIntent; private TextView mTextView; String[][] techList; IntentFilter[] filters = new IntentFilter[3]; @Override protected void onCreate(Bundle

ACR122U NFC Peer to Peer demo not working

感情迁移 提交于 2019-12-08 03:24:16
问题 I've got an ACR122U NFC card reader and ACR122T token from ACS. I'm trying to run their NFC Peer to Peer demo. I've installed the ACR122U SDK, mysql and connector, set up the database, and added the escape command to the registry. When I try to run the peer to peer demo I carry out the following steps (with resultant log results shown) Insert NFC ACR122T into USB port. Open the Smart Poster application and click initalise with reader 0. Log: D1: 2:04:57 PM Program ready D1: 2:05:02 PM

ACR122U emulate JIS 9319-4 tag instead of ISO 14443-4 tag when keep phone on the reader

末鹿安然 提交于 2019-12-08 03:15:51
问题 I have a strange problem. When i emulate a tag with the ACR122U it normally emulate a ISO 14443-4 (NfcA) tag. This always works in the following sequence: Start emulating with tgInitAsTarget Phone on the reader Transaction succesfull Phone off the reader But in this sequence below the emulated tag is recognized as a JIS 9319-4 tag Start emulating with tgInitAsTarget Put phone on the reader Transaction error Retransmit tgInitAsTarget Not a ISO 14443-4 tag anymore Phone off the reader So if i

Device Owner without using NFC in Android Lollipop

喜你入骨 提交于 2019-12-08 02:56:20
问题 I want to make my app as Device Owner without using NFC. On developer blog it's mentioned that to make device owner you must use NFC but I found it is also possible without NFC as mentioned by alex_au in this comment. I have tried this but haven't been successful. Has anybody been able to accomplish this? 回答1: You can use command line tool dpm from adb shell. Usage: usage: dpm [subcommand] [options] usage: dpm set-device-owner <COMPONENT> usage: dpm set-profile-owner <COMPONENT> <USER_ID> dpm

Testing an app by faking NFC tag scan

微笑、不失礼 提交于 2019-12-08 02:27:17
问题 I am new to Android, working on Near Field Communication for reading data from NFC tags. Neither I have NFC supported Android mobile nor NFC tags to test the application I created. I found the below two posts which says about faking NFC tag scans by triggering an Intent. Possibility for Fake NFC(Near Field Communication) Launch Need To Fake an NFC Tag Being Scanned In Android I changed my code according to the first post, where on click of a button I am triggering the required Intent in the

Android Application Installed but won't open on device

£可爱£侵袭症+ 提交于 2019-12-08 01:38:24
问题 I created an application on Android. I am developing it on eclipse with ADT. It is about nfc. For the moment it only reads and writes tag. I run my application on my mobile device for testing and it works well. So it compiles well and runs well on my Xperia Z1 Sony, however when i unplug my phone and install the apk on it i have a problem : The install runs well but then i have two choices "Terminated" or "Open". The open is not clickable... I go to settings->Application->installed and i see

NFC iOS 13 read/write trouble

筅森魡賤 提交于 2019-12-07 23:54:22
问题 I read all documentation about CoreNFC, saw all videos about read and write tags from WWDC 2019 but i didn't find no one information about my problem. I need to write tag with some data for open door/window at office. I create simple project on swift with read NFC tags but when i hold my phone to USB reader i have the next trouble in my log: 2019-06-28 13:45:10.994351+0300 officeProj[872:62700] [xpc.exceptions] <NSXPCConnection: 0x283cec120> connection to service on pid 90 named com.apple