【问题标题】:Get Value from Apdu Response从 Apdu 响应中获取价值
【发布时间】:2016-10-21 07:35:09
【问题描述】:

我在缓冲区中存储了一个长度值:

Short len=(short)128;
buffer[1]=(byte)len

在调试模式下,我在缓冲区中看到了这个值:

在 android 应用程序中,我在这段代码中得到 apdu 响应

byte[] result=isodep.transceive(....)//... is Apdu command

并得到结果1。 它是-128,但我想得到 128。 我能做什么?

【问题讨论】:

标签: android nfc apdu


【解决方案1】:

我写了 int i=result[1] & 0xFF 并且它回答了。

【讨论】:

    猜你喜欢
    • 2012-04-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-07-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多