Advanced-Logic / AndroidThaiNationalIDCard

Thai National ID Card library for Android application
32 stars 32 forks source link

lib ตัวนี้ใช้กับ android version อะไรได้บ้างครับ #4

Open watcharaphans opened 1 year ago

watcharaphans commented 1 year ago

สวัสดีครับ ไม่ทราบว่า lib ตัวนี้ใช้กับ andorid version อะไรได้บ้างครับ

watcharaphans commented 1 year ago

ผมติดตรงนี้ครับ selectAppletStorageData fail

watcharaphans commented 1 year ago

ขึ้นแบบนี้ครับ APDU header response abnormal [65:-2]

henryarm commented 10 months ago

@watcharaphans

Workaround solution: Check the card before getting personal information.

val thaiSmartCard = ThaiSmartCard(device)

// Check if the card is inserted
if (!thaiSmartCard.isInserted) {
    Toast.makeText(
        applicationContext,
        "Smart Card not found",
        Toast.LENGTH_LONG
    ).show()
    return
}

// Get personal information
val info = thaiSmartCard.personalInformation
slaffyJoe24 commented 2 months ago

*For God Sake why issue the Render to an Email Regarding Thai card doesn't make any Sense gaming card