rajdeol / android-aadhaar-card-scanner

Scan QR code of aadhaar card and save information on android device
20 stars 18 forks source link

not gettting result from most of the aadhaar cards.Only getting result from old cards #3

Open sanjoothomas opened 4 years ago

sanjoothomas commented 4 years ago

please give some replay

rajdeol commented 4 years ago

Hi Sanjoo,

I have implemented this on scanning QR code on Aadhar cards back in 2015, they might have changed the data in the new Aadhar cards. I don't have any new Aadhar card, if you can share few images of QR code of new Aadhar cards then I will update the code accordingly

sanjoothomas commented 4 years ago

The problem is qr code reader is not reading some qr codes .but some of the qr code in cards are reading with in seconds. I attached some of the card samples below.please check it

On Tue, 17 Mar 2020 at 10:37, Rajinder Deol notifications@github.com wrote:

Hi Sanjoo,

I have implemented this on scanning QR code on Aadhar cards back in 2015, they might have changed the data in the new Aadhar cards. I don't have any new Aadhar card, if you can share few images of QR code of new Aadhar cards then I will update the code accordingly

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rajdeol/android-aadhaar-card-scanner/issues/3#issuecomment-599880275, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOUQUT6EC6XENZQCJPIMANTRH4AQLANCNFSM4LM7SVYA .

sanjoothomas commented 4 years ago

sorry sir these to sample has no data .i will send you new aadhaar card sample shortly. sorry for the inconvenience

On Tue, 17 Mar 2020 at 11:43, Sanjoo Thomas sanjoothomas1995@gmail.com wrote:

The problem is qr code reader is not reading some qr codes .but some of the qr code in cards are reading with in seconds. I attached some of the card samples below.please check it

On Tue, 17 Mar 2020 at 10:37, Rajinder Deol notifications@github.com wrote:

Hi Sanjoo,

I have implemented this on scanning QR code on Aadhar cards back in 2015, they might have changed the data in the new Aadhar cards. I don't have any new Aadhar card, if you can share few images of QR code of new Aadhar cards then I will update the code accordingly

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rajdeol/android-aadhaar-card-scanner/issues/3#issuecomment-599880275, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOUQUT6EC6XENZQCJPIMANTRH4AQLANCNFSM4LM7SVYA .

sanjoothomas commented 4 years ago

This are the new samples i tried this in madhaar qr code scanner in that we are getting response.But in our app after reading it's get back to the home page directly. some of the card are facing this same issue.please give some replay

On Tue, 17 Mar 2020 at 12:11, Sanjoo Thomas sanjoothomas1995@gmail.com wrote:

sorry sir these to sample has no data .i will send you new aadhaar card sample shortly. sorry for the inconvenience

On Tue, 17 Mar 2020 at 11:43, Sanjoo Thomas sanjoothomas1995@gmail.com wrote:

The problem is qr code reader is not reading some qr codes .but some of the qr code in cards are reading with in seconds. I attached some of the card samples below.please check it

On Tue, 17 Mar 2020 at 10:37, Rajinder Deol notifications@github.com wrote:

Hi Sanjoo,

I have implemented this on scanning QR code on Aadhar cards back in 2015, they might have changed the data in the new Aadhar cards. I don't have any new Aadhar card, if you can share few images of QR code of new Aadhar cards then I will update the code accordingly

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rajdeol/android-aadhaar-card-scanner/issues/3#issuecomment-599880275, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOUQUT6EC6XENZQCJPIMANTRH4AQLANCNFSM4LM7SVYA .

sanjoothomas commented 4 years ago

In the previous qr code getting response after reading but not showing result it directly go to the home page. These are the error showing 2020-03-17 12:43:08.389 12240-12240/com.rajdeol.aadhaarreader W/System.err: org.xmlpull.v1.XmlPullParserException: name expected (position:END_TAG @1:3 in java.io.StringReader@63651fc) 2020-03-17 12:43:08.390 12240-12240/com.rajdeol.aadhaarreader W/System.err: at org.kxml2.io.KXmlParser.checkRelaxed(KXmlParser.java:313) 2020-03-17 12:43:08.390 12240-12240/com.rajdeol.aadhaarreader W/System.err: at org.kxml2.io.KXmlParser.readName(KXmlParser.java:1598) 2020-03-17 12:43:08.390 12240-12240/com.rajdeol.aadhaarreader W/System.err: at org.kxml2.io.KXmlParser.readName(KXmlParser.java:1569) 2020-03-17 12:43:08.390 12240-12240/com.rajdeol.aadhaarreader W/System.err: at org.kxml2.io.KXmlParser.readEndTag(KXmlParser.java:977) 2020-03-17 12:43:08.390 12240-12240/com.rajdeol.aadhaarreader W/System.err: at org.kxml2.io.KXmlParser.next(KXmlParser.java:383) 2020-03-17 12:43:08.390 12240-12240/com.rajdeol.aadhaarreader W/System.err: at org.kxml2.io.KXmlParser.next(KXmlParser.java:321) 2020-03-17 12:43:08.390 12240-12240/com.rajdeol.aadhaarreader W/System.err: at com.rajdeol.aadhaarreader.HomeActivity.processScannedData(HomeActivity.java:184) 2020-03-17 12:43:08.390 12240-12240/com.rajdeol.aadhaarreader W/System.err: at com.rajdeol.aadhaarreader.HomeActivity.onActivityResult(HomeActivity.java:119) 2020-03-17 12:43:08.390 12240-12240/com.rajdeol.aadhaarreader W/System.err: at android.app.Activity.dispatchActivityResult(Activity.java:6958) 2020-03-17 12:43:08.396 12240-12240/com.rajdeol.aadhaarreader W/System.err: at android.app.ActivityThread.deliverResults(ActivityThread.java:4049) 2020-03-17 12:43:08.396 12240-12240/com.rajdeol.aadhaarreader W/System.err: at android.app.ActivityThread.handleSendResult(ActivityThread.java:4096) 2020-03-17 12:43:08.396 12240-12240/com.rajdeol.aadhaarreader W/System.err: at android.app.ActivityThread.-wrap20(ActivityThread.java) 2020-03-17 12:43:08.396 12240-12240/com.rajdeol.aadhaarreader W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1516) 2020-03-17 12:43:08.396 12240-12240/com.rajdeol.aadhaarreader W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102) 2020-03-17 12:43:08.396 12240-12240/com.rajdeol.aadhaarreader W/System.err: at android.os.Looper.loop(Looper.java:154) 2020-03-17 12:43:08.396 12240-12240/com.rajdeol.aadhaarreader W/System.err: at android.app.ActivityThread.main(ActivityThread.java:6077) 2020-03-17 12:43:08.396 12240-12240/com.rajdeol.aadhaarreader W/System.err: at java.lang.reflect.Method.invoke(Native Method) 2020-03-17 12:43:08.398 12240-12240/com.rajdeol.aadhaarreader W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865) 2020-03-17 12:43:08.398 12240-12240/com.rajdeol.aadhaarreader W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)

On Tue, 17 Mar 2020 at 12:40, Sanjoo Thomas sanjoothomas1995@gmail.com wrote:

This are the new samples i tried this in madhaar qr code scanner in that we are getting response.But in our app after reading it's get back to the home page directly. some of the card are facing this same issue.please give some replay

On Tue, 17 Mar 2020 at 12:11, Sanjoo Thomas sanjoothomas1995@gmail.com wrote:

sorry sir these to sample has no data .i will send you new aadhaar card sample shortly. sorry for the inconvenience

On Tue, 17 Mar 2020 at 11:43, Sanjoo Thomas sanjoothomas1995@gmail.com wrote:

The problem is qr code reader is not reading some qr codes .but some of the qr code in cards are reading with in seconds. I attached some of the card samples below.please check it

On Tue, 17 Mar 2020 at 10:37, Rajinder Deol notifications@github.com wrote:

Hi Sanjoo,

I have implemented this on scanning QR code on Aadhar cards back in 2015, they might have changed the data in the new Aadhar cards. I don't have any new Aadhar card, if you can share few images of QR code of new Aadhar cards then I will update the code accordingly

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rajdeol/android-aadhaar-card-scanner/issues/3#issuecomment-599880275, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOUQUT6EC6XENZQCJPIMANTRH4AQLANCNFSM4LM7SVYA .

rajdeol commented 4 years ago

Can you share the logged scanned xml from the logs, it is logged into the logs at line https://github.com/rajdeol/android-aadhaar-card-scanner/blob/master/app/src/main/java/com/rajdeol/aadhaarreader/HomeActivity.java#L136

sanjoothomas commented 4 years ago

This is the scanned data </?xml version="1.0" encoding="UTF-8"?> <PrintLetterBarcodeData uid="842611425890" name="Rajeev Kumar S" gender="MALE" yob="1987" co="S/O Sasidharan Pillai S" lm="null" loc="null" vtc="Thrikkadavoor" po="Perinad" dist="Kollam" state="Kerala" pc="691601" dob="1987-11-27"/>

On Tue, 17 Mar 2020 at 15:40, Rajinder Deol notifications@github.com wrote:

Can you share the logged scanned xml from the logs, it is logged into the logs at line https://github.com/rajdeol/android-aadhaar-card-scanner/blob/master/app/src/main/java/com/rajdeol/aadhaarreader/HomeActivity.java#L136

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rajdeol/android-aadhaar-card-scanner/issues/3#issuecomment-599986448, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOUQUT7YDYPM6JTYUYC32SDRH5ECLANCNFSM4LM7SVYA .

rajdeol commented 4 years ago

This is a malformed xml </?xml version="1.0" encoding="UTF-8"?> <PrintLetterBarcodeData uid="842611425890" name="Rajeev Kumar S" gender="MALE" yob="1987" co="S/O Sasidharan Pillai S" lm="null" loc="null" vtc="Thrikkadavoor" po="Perinad" dist="Kollam" state="Kerala" pc="691601" dob="1987-11-27"/>

There is no end tag for tag "PrintLetterBarcodeData" in the above xml string, can you also share the scanneddata for a successful scanned aadhar card.

I have to update the code to handle this case of malformed xml

sanjoothomas commented 4 years ago

scanned data of a successful aadhar card. <?xml version="1.0" encoding="UTF-8"?> <PrintLetterBarcodeData uid="421241708594" name="Ajith Kumar K" gender="M" yob="1994" house="Kochuthoppil" lm="NiravilPuzha" vtc="Thondernad" dist="Wayanad" state="Kerala" pc="670731"/> 2020-03-17 15:46:32.087 6050-6050/com.rajdeol.aadhaarreader D/Rajdeol: Start document 2020-03-17 15:46:32.088 6050-6050/com.rajdeol.aadhaarreader D/Rajdeol: End tag PrintLetterBarcodeData

On Tue, 17 Mar 2020 at 16:09, Rajinder Deol notifications@github.com wrote:

This is a malformed xml </?xml version="1.0" encoding="UTF-8"?>

There is no end tag for tag "PrintLetterBarcodeData" in the above xml string, can you also share the scanneddata for a successful scanned aadhar card.

I have to update the code to handle this case of malformed xml

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rajdeol/android-aadhaar-card-scanner/issues/3#issuecomment-599999236, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOUQUT4T5LBVV4MCU6DOF63RH5HOJANCNFSM4LM7SVYA .

rajdeol commented 4 years ago

just a correction, the xml string which generates error starts with a closing tag

</?xml version="1.0" encoding="UTF-8"?>

and successful xml string starts with a proper xml tag

<?xml version="1.0" encoding="UTF-8"?>

ideally we should display a error message that xml is malformed but we can handle this as a special case

sanjoothomas commented 4 years ago

how to we can handle this.where we have to change for solving this

On Tue, 17 Mar 2020 at 17:11, Rajinder Deol notifications@github.com wrote:

just a correction, the xml string which generates error starts with a closing tag

</?xml version="1.0" encoding="UTF-8"?>

and successful xml string starts with a proper xml tag

ideally we should display a error message that xml is malformed but we can handle this as a special case

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rajdeol/android-aadhaar-card-scanner/issues/3#issuecomment-600025201, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOUQUT7NDTW7D2APLAA3T7TRH5OYNANCNFSM4LM7SVYA .

sanjoothomas commented 4 years ago

bro give some guidelines.I am a fresher in android app development

On Tue, 17 Mar 2020 at 17:14, Sanjoo Thomas sanjoothomas1995@gmail.com wrote:

how to we can handle this.where we have to change for solving this

On Tue, 17 Mar 2020 at 17:11, Rajinder Deol notifications@github.com wrote:

just a correction, the xml string which generates error starts with a closing tag

</?xml version="1.0" encoding="UTF-8"?>

and successful xml string starts with a proper xml tag

ideally we should display a error message that xml is malformed but we can handle this as a special case

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rajdeol/android-aadhaar-card-scanner/issues/3#issuecomment-600025201, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOUQUT7NDTW7D2APLAA3T7TRH5OYNANCNFSM4LM7SVYA .

rajdeol commented 4 years ago

Hi Sanjoo,

I will make the changes and update the code by end of this week.

On Tue, Mar 17, 2020 at 10:57 PM sanjoothomas notifications@github.com wrote:

bro give some guidelines.I am a fresher in android app development

On Tue, 17 Mar 2020 at 17:14, Sanjoo Thomas sanjoothomas1995@gmail.com wrote:

how to we can handle this.where we have to change for solving this

On Tue, 17 Mar 2020 at 17:11, Rajinder Deol notifications@github.com wrote:

just a correction, the xml string which generates error starts with a closing tag

</?xml version="1.0" encoding="UTF-8"?>

and successful xml string starts with a proper xml tag

ideally we should display a error message that xml is malformed but we can handle this as a special case

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/rajdeol/android-aadhaar-card-scanner/issues/3#issuecomment-600025201 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AOUQUT7NDTW7D2APLAA3T7TRH5OYNANCNFSM4LM7SVYA

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rajdeol/android-aadhaar-card-scanner/issues/3#issuecomment-600031108, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDMKCL3EWMYQYTBORIZRRLRH5QSBANCNFSM4LM7SVYA .

-- "RAJ DEOL"

sanjoothomas commented 4 years ago

Thanks brother

On Wed, 18 Mar 2020 at 09:34, Rajinder Deol notifications@github.com wrote:

Hi Sanjoo,

I will make the changes and update the code by end of this week.

On Tue, Mar 17, 2020 at 10:57 PM sanjoothomas notifications@github.com wrote:

bro give some guidelines.I am a fresher in android app development

On Tue, 17 Mar 2020 at 17:14, Sanjoo Thomas sanjoothomas1995@gmail.com wrote:

how to we can handle this.where we have to change for solving this

On Tue, 17 Mar 2020 at 17:11, Rajinder Deol notifications@github.com wrote:

just a correction, the xml string which generates error starts with a closing tag

</?xml version="1.0" encoding="UTF-8"?>

and successful xml string starts with a proper xml tag

ideally we should display a error message that xml is malformed but we can handle this as a special case

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <

https://github.com/rajdeol/android-aadhaar-card-scanner/issues/3#issuecomment-600025201

,

or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AOUQUT7NDTW7D2APLAA3T7TRH5OYNANCNFSM4LM7SVYA

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/rajdeol/android-aadhaar-card-scanner/issues/3#issuecomment-600031108 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/ABDMKCL3EWMYQYTBORIZRRLRH5QSBANCNFSM4LM7SVYA

.

-- "RAJ DEOL"

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rajdeol/android-aadhaar-card-scanner/issues/3#issuecomment-600413473, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOUQUT63GDAH7JUKCAU5ZCTRIBB3HANCNFSM4LM7SVYA .

rajdeol commented 4 years ago

Hi Sanjoo,

can you share a QR code image which I can use to test my code, I want a aadhar card with invalid xml, you cannot attach a image here so you need to upload it somewhere and share the url here

hardikm9850 commented 3 years ago

First, Thank you for implementing this app :)

I scanned Adhaar card created after 2018, the data is not in xml format rather contains only digits which the app is unable to parse. I will try to understand how this data can be parsed

This app is able to parse the data