Forum › MIFARE SDK › ANdroid with MiFare SDK issue… › Re: ANdroid with MiFare SDK issue…
Hi David, thanks for the fast respon...
libInstance.filterIntent(intent, new Inxpnfclibcallback() {
/// error : I've already import 'Inxpnfclibcallback' (com.nxp.nfclib.interface)
Log.i(TAG,"UltraLight Card Detected" );
/// error : TAG cannot be resolved : I've add the code 'private String TAG;'
import com.nxp.nfclib.Interface.Inxpnfclibcallback;
import com.nxp.nfcliblite.Interface.NxpNfcLibLite;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
public class MainActivity extends Activity {
.....
......
protected void onNewIntent(Intent intent) {
libInstance.filterIntent(intent, new Inxpnfclibcallback() {
private String TAG;
@Override
public void onUltraLigthCardDetected(MifareUL objUlCard) {
Log.i(TAG,"UltraLight Card Detected" );
objUlCard.connect();
}
@Override
public void onUltraLigthEV1CardDetected(MifareUL objUlCardEV1) {
Log.i(TAG,"UltraLight Card EV1 Detected" );
objUlCardEV1.connect();
}
});
super.onNewIntent(intent);
}
}
----------------------------------------------------------------------------------------
I rename the lnxpnfclibcallback -> lnxpnfcliblitecallback
import com.nxp.nfcliblite.Interface.Inxpnfcliblitecallback;
import com.nxp.nfcliblite.Interface.NxpNfcLibLite;
protected void onNewIntent(Intent intent) {
libInstance.filterIntent(intent, new Inxpnfcliblitecallback() {
private String TAG;
@Override
public void onUltraLigthCardDetected(MifareUL objUlCard) {
Log.i(TAG,"UltraLight Card Detected" );
objUlCard.connect();
}
@Override
public void onUltraLigthEV1CardDetected(MifareUL objUlCardEV1) {
Log.i(TAG,"UltraLight Card EV1 Detected" );
objUlCardEV1.connect();
}
});
libInstance.filterIntent(intent, new Inxpnfclibcallback() {
/// error : I've already import 'Inxpnfclibcallback' (com.nxp.nfclib.interface)
Log.i(TAG,"UltraLight Card Detected" );
/// error : TAG cannot be resolved : I've add the code 'private String TAG;'
import com.nxp.nfclib.Interface.Inxpnfclibcallback;
import com.nxp.nfcliblite.Interface.NxpNfcLibLite;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
public class MainActivity extends Activity {
.....
......
protected void onNewIntent(Intent intent) {
libInstance.filterIntent(intent, new Inxpnfclibcallback() {
private String TAG;
@Override
public void onUltraLigthCardDetected(MifareUL objUlCard) {
Log.i(TAG,"UltraLight Card Detected" );
objUlCard.connect();
}
@Override
public void onUltraLigthEV1CardDetected(MifareUL objUlCardEV1) {
Log.i(TAG,"UltraLight Card EV1 Detected" );
objUlCardEV1.connect();
}
});
super.onNewIntent(intent);
}
}
----------------------------------------------------------------------------------------
I rename the lnxpnfclibcallback -> lnxpnfcliblitecallback
import com.nxp.nfcliblite.Interface.Inxpnfcliblitecallback;
import com.nxp.nfcliblite.Interface.NxpNfcLibLite;
protected void onNewIntent(Intent intent) {
libInstance.filterIntent(intent, new Inxpnfcliblitecallback() {
private String TAG;
@Override
public void onUltraLigthCardDetected(MifareUL objUlCard) {
Log.i(TAG,"UltraLight Card Detected" );
objUlCard.connect();
}
@Override
public void onUltraLigthEV1CardDetected(MifareUL objUlCardEV1) {
Log.i(TAG,"UltraLight Card EV1 Detected" );
objUlCardEV1.connect();
}
});
+ 0
|
- 0