Forum Replies Created

  • Re: Reply To: Mifare Plus S(E) SL3 is undefined (Unknown card)

    24. August 2018 at 0:14
    in reply to: Mifare Plus S(E) SL3 is undefined (Unknown card)
    Hello!

    I have checked my code above once more.. And here is log from Logcat:

    called method initializeLibrary()
    called method onNewIntent()
    TapLinx version: 1.4.1
    Android version: 6.0.1
    Phone model: ASUS_T00N (Asus Padfone S)
    Tech list: [android.nfc.tech.IsoDep, android.nfc.tech.NfcA]
    CardType: UnknownCard.

    Sometimes I get other error Transceive failed (when I scan tag not correctly)
    This tag recognizes with NXP TagInfo correctly. Have added screenshots in my previous message...

    May be I can try this on older Taplix versions? How I can get them?
    + 0  |  - 0

    Re: Reply To: Mifare Plus S(E) SL3 is undefined (Unknown card)

    22. August 2018 at 12:43
    in reply to: Mifare Plus S(E) SL3 is undefined (Unknown card)
    Hello!
    Yes, I checked this code on another phone too. The same result.
    When I scan with this app it recognize the Mifare Plus S(E) SL3
    https://play.google.com/store/apps/details?id=com.nxp.taginfolite&hl=ru
    Screenshots:
    https://yadi.sk/i/8t72F0Dp3aTaBg
    https://yadi.sk/i/uAa9LJQO3aTaDz
    But when I scan with Taplinx sdk 1.4.1 or Taplinx Samle App the card isn't recognized.

    Also there is another problem with Gradle Build Tools. Taplix library not works with Grade Build Tools 3.4.1 (works only with 3.0.1).

    This is my full code (get from pdf file ANn11876):
    public class MainActivity extends AppCompatActivity {

    private String TAG = MainActivity.class.getSimpleName();
    private TextView textView = null;
    private String packageKey = "THERE_IS_MY_KEY";
    private NxpNfcLib libInstance = null;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    textView = (TextView) findViewById(R.id.textview);

    initializeLibrary();

    }

    @Override
    protected void onResume() {
    libInstance.startForeGroundDispatch();
    super.onResume();
    }

    @Override
    protected void onPause() {
    libInstance.startForeGroundDispatch();
    super.onPause();
    }

    private void initializeLibrary() {
    libInstance = NxpNfcLib.getInstance();
    try {
    libInstance.registerActivity(this, packageKey);
    } catch (NxpNfcLibException ex) {
    //ex.printStackTrace();
    } catch (Exception e) {
    // do nothing added to handle the crash if any
    }
    }

    @Override
    public void onNewIntent(Intent intent) {
    Log.d(TAG, "onNewIntent");
    cardLogic(intent);
    super.onNewIntent(intent);
    }

    private void cardLogic(final Intent intent) {
    CardType cardType = CardType.UnknownCard;
    try {
    cardType = libInstance.getCardType(intent);
    textView.setText("Card type found: "+ cardType.getTagName());
    } catch (Throwable t) {
    textView.setText(t.getMessage());
    }
    Log.d(TAG, "Card type found: " + cardType.getTagName());
    textView.setText("Card type found: "+ cardType.getTagName());
    }


    }


    + 0  |  - 0
Viewing 2 posts - 1 through 2 (of 2 total)