GithubHelp home page GithubHelp logo

nfc-reader's Introduction

Simple NFC reader for Android based on the sample code from the Android SDK.

Get it on F-Droid Get it on Google Play

If you have problem compiling the app make sure you have the /libs/guavalib.jar included in the build path.

nfc-reader's People

Contributors

dnet avatar fa18swiss avatar nadam avatar poussinou avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nfc-reader's Issues

The ability to ignore some ids

Sort of related to #18 but in my case I have a phone case with a wallet that gets scanned if i fold the case out too close to the phone.

"Clear all" does not appear to clear tag data/contents

I discovered this when playing with some NFC tags on a Samsung S10E. In short, a simple unlocked NFC tag containing a youtube link was scanned with the app a few times. when trying to clear them, they didn't seem to clear.

  1. download the NFC tools app
  2. write a youtube link to an NFC tag (i don't have the tag with me right now but it seemed to be a fairly basic ISO type tag as shown by nfc tools)
  3. scan the tag with this NFC reader app (v0.15) one or a few times
  4. click the "clear all" button

Expected Behavior: the youtube links scanned from the tag should disappear from the app
Actual Behavior: They do not disappear from the app

Apologies in advance for the lack of some details. Its also entirely possible that this might be user error so don't sweat it too much if its not reproducible

Feature request: Only scan when app is open

If I set the phone down on a library book (really, just holding it near), the app opens and interrupts anything else I'm doing. For example, reading a book in one hand, streaming a video on my phone in the other, and when my phone got near the book it read the NFC tag in the book and cut off the video.

Please enable a setting to only scan when the app is open with primary focus, or just set that by default.

tag technology support

I have a question related to this. Does this supports all tech technologies other than NDEF mentioned in Table 1 & 2 on Official Android Documentation here

Where is the MainActivity?

Would you please tell me where is the MainActivity.java? I can't build the APK in android studio(I hava find the whole project).

Many folders are missing in the zip-folder

Hello,
I've just downloaded the zip-file and compiled it but then there are everywhere errors and I think it's only because of the imports of some folders which aren't in the download-zip-file:

import se.anyro.nfc_reader.R;

import android.app.Activity;
import android.app.AlertDialog;
import android.app.PendingIntent;
import android.content.DialogInterface;
import android.content.Intent;
import android.nfc.NdefMessage;
import android.nfc.NdefRecord;
import android.nfc.NfcAdapter;
import android.nfc.Tag;
import android.nfc.tech.MifareClassic;
import android.nfc.tech.MifareUltralight;
import android.os.Bundle;
import android.os.Parcelable;
import android.provider.Settings;
import android.view.LayoutInflater;
import android.widget.LinearLayout;
import android.widget.TextView;

All those and some others aren't possible to import because the folder is missing, or am I wrong?

best regards,
Robert

Fyi

Does not
d9wnload

Unable to scan certain tags on the app

Issue:
I am unable able to scan some tags as it is not supported by the app. But I was able to scan them with NXP's TagInfo. Is there anyway to fix this issue as I just want the UID from the tag itself.

Screenshots of one of the tag's:

Screenshot_20200114-112040
Screenshot_20200114-112050
Screenshot_20200114-112008

Compilation.Closed. I found in issue 4.

Hi,
I downloaded last version but it cannot compile. I cannot find R. guavalib.jar is correct location. Can you please help. I cannot find R. Some error lines in below.

import se.anyro.nfc_reader.R;
setContentView(R.layout.tag_viewer);
mTagContent = (LinearLayout) findViewById(R.id.list);

Regards,

Convert to Library

Hi Adam,

Thanks for sharing the code of your app. It makes an excellent case study. I am planning to fork your code and refactor it slightly so that it can be used as a Library. Mainly I will be changing getView to getRecord.

I will give you full credit. I just wanted to check with you a couple of things:

  1. Do you see it as a complete solution and if not what features are missing? I will add these to the backlog.
  2. Would you prefer the repository was hosted on your account so that you get full credit and I am just a contributor?

Thanks from one Adam to another,
Adam.

background gone dark

one of the last updates - my S8 now has the background in a very dark colour and its hard to read the tag details - email and contact info highlighted - just nothing else

Can't read from OnePlus 3

Not important to me personally.

However I tried your app on my OnePlus 3T with a NFC tag that I know I can read from other apps on the same device. And nothing happens.

Wrong data scanned

NFC tag after scaning shows this :

80 58 99 9a 91 84 04
ID (reversed hex): 04 84 91 9a 99 58 80
ID (dec): 36126213765432324
ID (reversed dec): 1271660805707904
Technologies: NfcA, MifareUltralight, Ndef
Mifare Ultralight type: Ultralight C

Licensing terms

I can't find any licensing terms with the source code. Does this mean you release it to the public domain? Or do any other terms apply?
when in doubt, go with Apache License 2.0 please :)

How to get data from MRT card

I am trying to read values from ez-link Singapore MRT card. Below image is my current output:
current_output

How fetch values like travel history/ current balance, refer below image:
expected_output

Value of Tag ID (dec) is not correct

When I scanned card with Tag ID (DEC) begin with number "0", app can not show it because mistake. So, kindly checking again.
Sample: Tag ID (DEC) is " 0123456789", but when scan it, app just show Tag ID (Dec) is "123456789"

app is not running

04-12 11:11:22.216: E/AndroidRuntime(11019): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{se.anyro.nfc_reader/se.anyro.nfc_reader.TagViewer}: java.lang.ClassNotFoundException: se.anyro.nfc_reader.TagViewer

Source code did not contain R.java and BuildConfig.java in your source package !

as title.

I download source package and try to build, but it complained. I search all over your commit check-in, and I cannot find those two files R.java and BuildConfig.java. Can you please also check in those two files ?

Those two files were generated automatically, but without those two files, it cannot be compiled successfully in Windows Eclipse IDE environment. Please provide it to me. Thanks.

-tommy

Forward the raw data to a port on the phone

hi,
There is a very good usecase for using the phone's NFC reader on the desktop by connecting it with ADB and running a portforward.

For example, on the phone you could do

echo Just testing' | nc -l -p 1112 #putting it on port 1112

on the desktop,
do a port forward "adb tcp:1111 tcp:1112"
read the data from port 1111 - nc 127.0.0.1 1111

Not only this, you could now get desktop apps to read from the forwarded port and have access to the NFC scan data.

Could you add a feature to push NFC scan raw data to a port on android - you can hardcode this.

thanks!

Broken Google Play Store link

The link of the "Get it on Google Play" returns a 404 error on Google Play's website.
I also couldn't find the app by searching for it on the play store.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.