Show Enter card Manual
Closed this issue · 9 comments
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.
hey @Zennaxxtech, we just released a change that will allow you to toggle this via an intent.
See the following for examples:
https://github.com/getbouncer/cardscan-android/blob/master/cardscan/src/main/java/com/getbouncer/cardscan/ScanActivity.java#L69
https://github.com/getbouncer/cardscan-android/blob/master/cardscan-base/src/main/java/com/getbouncer/cardscan/base/ScanActivityImpl.java#L27
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