markusfisch / BinaryEye

Yet another barcode scanner for Android
https://play.google.com/store/apps/details?id=de.markusfisch.android.binaryeye
MIT License
1.47k stars 121 forks source link

Passing scan back to another app. #435

Closed Flatc4t closed 7 months ago

Flatc4t commented 7 months ago

Hi Markus, I'm having problems with the new update (looked for documentation here and in general but couldn't find anything that helped). Previously I used the code below to retrieve the scanned code back into my App but it now no longer works. As best as I can tell, the result.data?.getStringExtra("SCAN_RESULT") string is null. Reverting the app back to an older version gets it back working again. Has there been a change to how this works (and if so, what would I need to modify)?

Thanks Rick

val scanDocketButton = findViewById

markusfisch commented 7 months ago

Hi Rick, sorry, this was indeed a bug in Binary Eye! Thanks for filing an issue about that!

Since the format was migrated from a simple string to an (internal) object, the return intent could no longer work for other apps (that did not know this object class, of course) 🙈 This is fixed in https://github.com/markusfisch/BinaryEye/commit/0d4f536f71b0fa91732c9b8083a8c6642d526adb

There will be a new version soon!

Flatc4t commented 6 months ago

Thanks Markus I now have no need to fear updates 😁 - well, based on my capability of coding, I do, but I can pretend for a while.

Rick

On Mon, Mar 4, 2024 at 4:06 AM Markus Fisch @.***> wrote:

Closed #435 https://github.com/markusfisch/BinaryEye/issues/435 as completed.

— Reply to this email directly, view it on GitHub https://github.com/markusfisch/BinaryEye/issues/435#event-11990744772, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3FWBJMGAOBSPXA64HPBDS3YWNNRTAVCNFSM6AAAAABEDTWUX2VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJRHE4TANZUGQ3TOMQ . You are receiving this because you authored the thread.Message ID: @.***>