Forum Replies Created
-
Re: Re: ANdroid with MiFare SDK issue…
8. May 2015 at 4:09 in reply to: ANdroid with MiFare SDK issue…i c...
Is this tutorial can be done with Android studio?
I am very new with Android, and feel weird about android studio and eclipse (many times I just build some blank activity, get error) and I haven't start for coding yet... It makes me crazy >:-(
Oh ya, I've already make the *.apk file and install on smartphone with NFC, and add Toast to get pop up message (replacing logcat).
Thanks again, you are very nice...
+ 0 | - 0
Re: Re: ANdroid with MiFare SDK issue…
7. May 2015 at 11:37 in reply to: ANdroid with MiFare SDK issue…:-D I don't have any smartphone with nfc things yet, just the ACR122U...
The code free of error, I can clean and build the program...
I am running the program form emulator, and right now I still don't know what to do >:-) ...
Is this code only for smartphone with NFC?
Or you can show me some way to get a tutorial for detect some card reader...
Thanks a lot....
+ 0 | - 0
Re: Re: ANdroid with MiFare SDK issue…
7. May 2015 at 11:21 in reply to: ANdroid with MiFare SDK issue…libInstance.registerActivity(MainActivity.this, false);
//// error : remove argument to match 'registerActivity(Activity)'
libInstance.registerActivity(MainActivity.this); //// not error anymore, it's okay?
libInstance.filterIntent(intent, new Inxpnfcliblitecallback() {
//// add unimplemented method
http://pastebin.com/gsN33tg8
+ 0 | - 0
Re: Re: ANdroid with MiFare SDK issue…
7. May 2015 at 10:56 in reply to: ANdroid with MiFare SDK issue…Dear David,
I used this document :UM10853_UserManual_Getting_Started_with_MifareSDK_Lite.pdf
http://pastebin.com/3b8UaEP5
best regards,
+ 0 | - 0
Re: Re: ANdroid with MiFare SDK issue…
7. May 2015 at 10:24 in reply to: 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();
}
});
+ 0 | - 0
Re: Re: ANdroid with MiFare SDK issue…
7. May 2015 at 9:47 in reply to: ANdroid with MiFare SDK issue…Hi, I faced the same problems too, need suggestion and help...
protected void onNewIntent(Intent intent) {
libInstance.filterIntent(intent, new Inxpnfcliblitecallback() {
///// error : Inxpnfcliblitecallback cannot be resolved to a type
///// error : the method filterIntent(Intent, lnxpnfcliblitecallback) in the type is not applicable for the arguments (Intent, new lnxpnfcliblitecallback(){})
@Override
public void onUltraLigthCardDetected(MifareUL objUlCard) {
///// error : MifareUL cannot be resolved to a type
Log.i(TAG,"UltraLight Card Detected" );
objUlCard.connect();
}
});
super.onNewIntent(intent);
}
+ 0 | - 0
-
AuthorPosts
Viewing 6 posts - 1 through 6 (of 6 total)