Re: SmartCardException with UltralightC and Nexus 7 2012

Forum MIFARE SDK SmartCardException with UltralightC and Nexus 7 2012 Re: SmartCardException with UltralightC and Nexus 7 2012

Re: SmartCardException with UltralightC and Nexus 7 2012

12. May 2015 at 15:02
Hi,
thank you so much for your quick and kind response.

I've tried what you suggested and the line it is NOT printed. Therefore:
protected void onNewIntent(Intent intent) {
Log.d("TAG", "Testing if it connects");
libInstance.filterIntent(intent, new Nxpnfcliblitecallback() {
private String TAG;
@Override
public void onUltraLightCCardDetected(UltralightC objUlCardC) {
Log.i("TAG","UltralightC card Detected" );
try {
objUlCardC.connect();
Log.d("TAG", "Testing if it connects");
} catch (Throwable t) {
}

}
});
}

And the output at logcat is:
05-12 09:57:21.903 20861-20861/com.mifaresdktest I/SDK? This is NXP Card
05-12 09:57:22.044 20861-20861/com.mifaresdktest W/System.err? com.nxp.nfclib.exceptions.SmartCardException: Unknown Error.
05-12 09:57:22.044 20861-20861/com.mifaresdktest W/System.err? at com.nxp.nfclib.ntag.NTag.?(:239)
05-12 09:57:22.044 20861-20861/com.mifaresdktest W/System.err? at com.nxp.nfclib.ntag.NTagFactory.getNTAG(:223)
05-12 09:57:22.044 20861-20861/com.mifaresdktest W/System.err? at com.nxp.nfcliblite.Interface.NxpNfcLibLite.filterIntent(:276)
05-12 09:57:22.044 20861-20861/com.mifaresdktest W/System.err? at com.mifaresdktest.MainActivity.onNewIntent(MainActivity.java:80)
05-12 09:57:22.044 20861-20861/com.mifaresdktest W/System.err? at android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1210)
05-12 09:57:22.044 20861-20861/com.mifaresdktest W/System.err? at android.app.ActivityThread.deliverNewIntents(ActivityThread.java:2430)
05-12 09:57:22.045 20861-20861/com.mifaresdktest W/System.err? at android.app.ActivityThread.performNewIntents(ActivityThread.java:2443)
05-12 09:57:22.045 20861-20861/com.mifaresdktest W/System.err? at android.app.ActivityThread.handleNewIntent(ActivityThread.java:2452)
05-12 09:57:22.045 20861-20861/com.mifaresdktest W/System.err? at android.app.ActivityThread.access$1600(ActivityThread.java:144)
05-12 09:57:22.045 20861-20861/com.mifaresdktest W/System.err? at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1350)
05-12 09:57:22.045 20861-20861/com.mifaresdktest W/System.err? at android.os.Handler.dispatchMessage(Handler.java:102)
05-12 09:57:22.045 20861-20861/com.mifaresdktest W/System.err? at android.os.Looper.loop(Looper.java:135)
05-12 09:57:22.045 20861-20861/com.mifaresdktest W/System.err? at android.app.ActivityThread.main(ActivityThread.java:5221)
05-12 09:57:22.045 20861-20861/com.mifaresdktest W/System.err? at java.lang.reflect.Method.invoke(Native Method)
05-12 09:57:22.045 20861-20861/com.mifaresdktest W/System.err? at java.lang.reflect.Method.invoke(Method.java:372)
05-12 09:57:22.045 20861-20861/com.mifaresdktest W/System.err? at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
05-12 09:57:22.045 20861-20861/com.mifaresdktest W/System.err? at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)

Thanks!
Emmanuel.
+ 0  |  - 0