getbouncer/cardscan-android

Show Enter card Manual

Closed this issue · 9 comments

I have checked same version in iOS and its provide the facility that Enter Card manual label in bottom same as below image
8611842B-52AC-44CC-A97E-15FAEAAC0D19
but in android I am unable to set that label. Please let me know how to set that type of label in android also and get its onClick event. Help would be very appreciate. Thanks.

What do you think @awushensky ?

Thanks for pointing this out. @xsl will take a look at it.

I know might be take long time but if possible then please let me know approx time.

I believe there is a PR out for this now. I expect this will merge in the next few days.

Thank you so much for this solution. I have taken latest pull and try to open ScanActivity as you explained above but there is not any this type of line intent.putExtra(ScanActivityImpl.SHOW_ENTER_CARD_MANUALLY_BUTTON, showEnterCardNumberManually);)
in the ScanActivity class. I have tried in another project also but same issue. So please let me know still its not merged or I am doing something wrong.

Hi @Zennaxxtech , to clarify, you should now be able to call ScanActivity.start(this, true, true) to show the enter card manually button. You should not need to specifically modify any intents.

If you're using jcenter to include cardscan in your app, you'll need to update your version to at least 1.0.5123 to see these changes.

Hi @awushensky , I am able to get the Enter card manually option's on Scanning Activity. Thank you so much.
There is one another confusion and if you can give suggestion then please let me know that how can I differentiate that user is pressed Close button or Enter card Manually button in onActivityResult() method?

Absolutely. The intent passed to onActivityResult() will have an extra value "result_enter_card_manually" set to true if the user tapped that button.

See this line for details:
https://github.com/getbouncer/cardscan-android/blob/master/cardscan-base/src/main/java/com/getbouncer/cardscan/base/ScanBaseActivity.java#L535