markusfisch / BinaryEye

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

allow file input from share menu #469

Closed Theta-Dev closed 4 months ago

Theta-Dev commented 4 months ago

BinaryEye allows the user to input data using the Share menu and create QR codes from it. This however only works if the text data is included in the share intent. Sharing a file (e.g. from the file explorer) just leads to the main page.

I updated the handleSendText method to support both types of intents. I also extended the accepted file types to text/* to also accept VCards and other text-based files.

Possible applications for this new feature are

Tested with the default Android file browser and the contacts app on LineageOS.

markusfisch commented 4 months ago

Great work! 👍 Thanks a lot! 😄