Hallo to All,
first of all sorry for my question, I am quite a newbie in programming, so maybe I am posting a very stupid problem.
Anyway, I am trying to develop an App to read bulk NFC TAG UID, link this UID to a S/N of a machine in wich the tag is inserted and then save this record to a remote database (with some other details like date, time, operator, and so on).
I red the EMEL TUTORIAL for NFC, and my app correctly reads the TEXT, but the part in Java that should read the UID seems not working correctly.
Here's the log of error:
** Activity (main) Pause, UserClosed = false **
** Service (starter) Create **
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
Prova dal tel di Edo S7 03 febbraio 2017 07:15
Error occurred on line: 64 (Main)
java.lang.RuntimeException: Object should first be initialized (TagTechnology).
at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:50)
at b4a.example.main._activity_resume(main.java:455)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:708)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:340)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:247)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:134)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:153)
at b4a.example.main$ResumeMessage.run(main.java:302)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:7231)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
** Activity (main) Pause, UserClosed = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
I have to initialize the TagTechnology? How to do it?
Thank you very much for your help and...for your time!
Ciao
Fabio
first of all sorry for my question, I am quite a newbie in programming, so maybe I am posting a very stupid problem.
Anyway, I am trying to develop an App to read bulk NFC TAG UID, link this UID to a S/N of a machine in wich the tag is inserted and then save this record to a remote database (with some other details like date, time, operator, and so on).
I red the EMEL TUTORIAL for NFC, and my app correctly reads the TEXT, but the part in Java that should read the UID seems not working correctly.
Here's the log of error:
** Activity (main) Pause, UserClosed = false **
** Service (starter) Create **
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
Prova dal tel di Edo S7 03 febbraio 2017 07:15
Error occurred on line: 64 (Main)
java.lang.RuntimeException: Object should first be initialized (TagTechnology).
at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:50)
at b4a.example.main._activity_resume(main.java:455)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:708)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:340)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:247)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:134)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:153)
at b4a.example.main$ResumeMessage.run(main.java:302)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:7231)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
** Activity (main) Pause, UserClosed = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
I have to initialize the TagTechnology? How to do it?
Thank you very much for your help and...for your time!
Ciao
Fabio