MIFARE SDK for Android – SampleNxpNfcLiteLib is crashing on Nexus 5

Forum / MIFARE SDK / MIFARE SDK for Android – SampleNxpNfcLiteLib is crashing on Nexus 5

  • 20. June 2014 at 11:02
    Hi,

    I tried on my Nexus 5 the sample apps provided in the Midare SDK for Android. Unfortunately I am getting serveral crashes:

    When I tried to read a Mifare Classic tag I am getting the following crash:

    I/ULTRALIGHT_FACTORY( 4389): Get Parameters TagTAG: Tech [android.nfc.tech.NfcA]
    D/AndroidRuntime( 4389): Shutting down VM
    W/dalvikvm( 4389): threadid=1: thread exiting with uncaught exception (group=0x4163cba8)
    E/AndroidRuntime( 4389): FATAL EXCEPTION: main
    E/AndroidRuntime( 4389): Process: com.example.samplelitelib, PID: 4389
    E/AndroidRuntime( 4389): java.lang.ArrayIndexOutOfBoundsException: length=4; index=4
    E/AndroidRuntime( 4389): at com.a.a.e.c.a(Unknown Source)
    E/AndroidRuntime( 4389): at com.a.b.a.c.a(Unknown Source)
    E/AndroidRuntime( 4389): at com.example.samplelitelib.MainLiteActivity.onNewIntent(Unknown Source)
    E/AndroidRuntime( 4389): at android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1161)
    E/AndroidRuntime( 4389): at android.app.ActivityThread.deliverNewIntents(ActivityThread.java:2302)
    E/AndroidRuntime( 4389): at android.app.ActivityThread.performNewIntents(ActivityThread.java:2315)
    E/AndroidRuntime( 4389): at android.app.ActivityThread.handleNewIntent(ActivityThread.java:2324)
    E/AndroidRuntime( 4389): at android.app.ActivityThread.access$1600(ActivityThread.java:135)
    E/AndroidRuntime( 4389): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1267)
    E/AndroidRuntime( 4389): at android.os.Handler.dispatchMessage(Handler.java:102)
    E/AndroidRuntime( 4389): at android.os.Looper.loop(Looper.java:136)
    E/AndroidRuntime( 4389): at android.app.ActivityThread.main(ActivityThread.java:5001)
    E/AndroidRuntime( 4389): at java.lang.reflect.Method.invokeNative(Native Method)
    E/AndroidRuntime( 4389): at java.lang.reflect.Method.invoke(Method.java:515)
    E/AndroidRuntime( 4389): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
    E/AndroidRuntime( 4389): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
    E/AndroidRuntime( 4389): at dalvik.system.NativeStart.main(Native Method)

    When I am tring to read a NFC Forum Type 4 Tag, I am getting these kind of crash:
    D/NfcDispatcher(12644): Set Foreground Dispatch
    I/NfcDispatcher(12644): matched NDEF override
    I/ActivityManager(12383): START u0 {act=android.nfc.action.NDEF_DISCOVERED typ=text/plain flg=0x20000000 cmp=com.example.samplelitelib/.MainLiteActivity (has extras)} from pid -1
    W/ActivityManager(12383): startActivity called from non-Activity context; forcing Intent.FLAG_ACTIVITY_NEW_TASK for: Intent { act=android.nfc.action.NDEF_DISCOVERED typ=text/plain flg=0x20000000 cmp=com.example.samplelitelib/.MainLiteActivity (has extras) }
    I/DESFire ( 5255): getVersion RESULT: 0x040101000218050401010006180504304141FF1E808E64114A904505
    W/Plus ( 5255): CEHCK CONNECT_con
    W/Plus ( 5255): CEHCK CONNECT
    W/System.err( 5255): com.a.a.d.c: Response : null
    W/System.err( 5255): at com.a.a.h.a.b(Unknown Source)
    W/System.err( 5255): at com.a.a.h.a.a(Unknown Source)
    W/System.err( 5255): at com.a.b.b.e.c(Unknown Source)
    W/System.err( 5255): at com.a.b.a.c.a(Unknown Source)
    W/System.err( 5255): at com.example.samplelitelib.MainLiteActivity.onNewIntent(Unknown Source)
    W/System.err( 5255): at android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1161)
    W/System.err( 5255): at android.app.ActivityThread.deliverNewIntents(ActivityThread.java:2302)
    W/System.err( 5255): at android.app.ActivityThread.performNewIntents(ActivityThread.java:2315)
    W/System.err( 5255): at android.app.ActivityThread.handleNewIntent(ActivityThread.java:2324)
    W/System.err( 5255): at android.app.ActivityThread.access$1600(ActivityThread.java:135)
    W/System.err( 5255): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1267)
    W/System.err( 5255): at android.os.Handler.dispatchMessage(Handler.java:102)
    W/System.err( 5255): at android.os.Looper.loop(Looper.java:136)
    W/System.err( 5255): at android.app.ActivityThread.main(ActivityThread.java:5001)
    W/System.err( 5255): at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err( 5255): at java.lang.reflect.Method.invoke(Method.java:515)
    W/System.err( 5255): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
    W/System.err( 5255): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
    W/System.err( 5255): at dalvik.system.NativeStart.main(Native Method)
    D/NfcDispatcher(12644): Set Foreground Dispatch
    D/NativeNfcTag(12644): Tag lost, restarting polling loop
    D/NativeNfcTag(12644): Stopping background presence check

    Best regards
    + 0  |  - 0

    Re: MIFARE SDK for Android – SampleNxpNfcLiteLib is crashing on Nexus 5

    22. July 2014 at 5:19
    hi, Please check with latest SDK.
    + 0  |  - 0
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.