trikita / obsqr

obsqr - minimalistic QR and barcode scanner for Android
http://trikita.co/obsqr
MIT License
61 stars 20 forks source link

Scanning (ridiculously) big QR codes makes it crash #4

Open HacKanCuBa opened 8 years ago

HacKanCuBa commented 8 years ago

I scanned this tweet shared by Mikko Hipponen and the app crashed. The QR code ammount of data is 2953 bytes.

Here's the image: huge QR code

However, other apps such as Barcode Scanner do not crash and solves the scan perfectly.

I think this has to do with the fact that Obsqr tries to show the text in a small textbox. It should check length first to see if it fits in a small textbox and if it doesn't, display it in a new screen or something (sorry, I'm a dev but not an Android one).

Test conditions: Android v6.x and v7.0 on Nexus 5X (custom distro: CopperheadOS)

Note: I wrote this at Bitbucket, then I noticed you were using github.