GithubHelp home page GithubHelp logo

wewewe718 / qrandbarcodescanner Goto Github PK

View Code? Open in Web Editor NEW
677.0 26.0 131.0 14.04 MB

An Android app for scanning QR codes and barcodes

License: The Unlicense

Kotlin 100.00%
android qr barcode scanner reader kotlin zxing

qrandbarcodescanner's Introduction

Overview

License: Unlicense

QR & Barcode Scanner is an ad-free, open-source scanner app. It uses the ZXing scanning library.

Download

Get it on Google Play Explore it on AppGallery Get it on FDroid Get it on Github

Screenshots

Contributing

You can contribute by adding a translation on Transifex, reporting a bug or asking for a feature.

Supported Barcode Formats

Read

The app can read the following barcode formats:

Create

The app can create the following barcode formats:

qrandbarcodescanner's People

Contributors

chittacouple avatar cwickert avatar gnusuari0 avatar jwiesel avatar lucasnz avatar maxsiomindev avatar ner00 avatar prsnbrg avatar ptilopsisleucotis avatar still34 avatar tzagim avatar wewewe718 avatar yue-dongchen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

qrandbarcodescanner's Issues

Auto-dark theme not works

Hi,
I use this app on Android 9.0 (Xiaomi Mi 6)
Please support system-wide dark mode on my device.
Screenshot_2020-11-26-21-50-36-797_com example barcodescanner

Some barcodes aren't scanned.

IMG_20200921_235711__01
The attached barcode was not scanned. Google Lens provided a result for it. This means the code was scannable, but the app failed to pick it.
Maybe you would like to check this up.

Cheers!

Add share button

Hello,

I found the app yesterday via F-Droid and am positively surprised that it already supports so many functions. Thanks a lot for that. Also the handling is much easier and better than with the QR-scanners I have used so far.
The only feature I am missing is the classic sharing, so I can send the scanned QR code with/in other apps or transfer it to the PC.
So is it possible to add this?

Wi-Fi Connection Setup Becomes Permanent

If a Wi-Fi network is registered using the app, the network cannot be edited or removed. Networks added by the app will have a "Available via " watermark next to the AP. Tested on Pixel 3 XL/latest R build.

Attempting to edit the network will result in the following dialog:

image

Add frendly name to history entry

It would be nice to allow a name to be set to history entries. When a name is set it is shown in the history list, making it easier to find the desired code by giving it a friendly name.

Select multiple entries in history & copy to clip board (or other share)

First off, thanks for a great app, it works really well, and enables me to scan multiple items really quickly ! ๐ŸŽ‰

I'm trying to use the app in conjunction with https://inventaire.io/ and would like to scan ISBNs and then copy them into the import form. For this I scan multiple items but then I can't select the recent entries to copy / paste them, right now I have to copy and paste one by one, making the process not quicker than other methods. I want to avoid going through the whole history export to CSV since I don't want to go through the books I've added on another batch/day.

I think other share mecanisms could be also benefit from this multiple selection.

Czech translation

Hi, thanks for making this app! I would like to help you translate the app. Could you please add a czech language to the translation site? I've already made a request. Thanks

Please add the option for Custom Search Engines

I noticed that your app is using Google for web search and there doesn't seem to be any way to change that.
Coul you please add an option for other search engines? I personally use Duckduckgo and I'm sure many other users think the same.

Best wishes!

Doubling of slash

Hi there, there seems to be a bug where / gets doubled when scanning a QR code for a wifi network. i've made some screenshots to show how to reproduce: https://imgur.com/a/iqzbGNo

As you can see, via android settings sharing a wifi network via QR code, then i screenshotted that and opened it as a picture in the QR and Barcode Scanner app, which resulted in the / being changed into //.

Add amoled (black) theme

Hi! First up your app is amazing.

It would be so good if you could add an amoled theme to the app.

Problems with special characters escaped with leading backslash in WiFi-passwords

QrAndBarcodeScanner Version 1.5

AVM "Fritzbox" routers (very widely used brand in Germany) display a QR-Code for WiFi-Setup. I encountered problems with the wifi password not working after having been decoded by your app. I will try to explain what I was able to figure out:

Some special characters in the wifi-password are escaped with a leading backslash in the qr-code. When scanning the qr-code the escape-backslashes should be removed (but not the backslashes that are actually part of the password), else the wifi password will not work.

Valid characters are (including blank spaces):
_ - ! " # $ % & ' ( ) * + , . / : ; < = > ? @ [ \ ] ^ ` { | } ~

As far as I could tell, characters that will be escaped, are: Quotation mark ("), apostrophe ('), comma (,), slash (/), colon (:), semicolon (;) and backslash (\).

If I create a wifi-password with all the characters mentioned above, the qr code generated by the router is this:

grafik

Decoded this is:
WIFI:S:Gatze;T:WPA;P:_ - ! \" # $ % & \' ( ) * + \, . \/ \: \; < = > ? @ [ \\ ] ^ ` { | } ~;;

What I get when scanning the qr code with your app is this:

_ - ! " # $ % & \' ( ) * + , . \/ : \

So I see two problems here:

a) The password ends right before the semicolon which is part of the password and does not indicate the end of the password in this case. The escaping backslash before the semicolon is kept.
b) Some escaping backslashes are not removed (before apostrophe and before slash).

I am not really sure if the problem is in your app or if the router generates non-standard qr-codes (BTW: Where is this standard defined and what is it called?)

Gradle Build instructions

Hello, I'm trying to build an unsigned APK for my own device with gradle but getting the following error:

$ gradle assembleXda
Configuration on demand is an incubating feature.

> Configure project :app
WARNING:: API 'variantOutput.getProcessManifest()' is obsolete and has been replaced with 'variantOutput.getProcessManifestProvider()'.
It will be removed in version 7.0 of the Android Gradle plugin.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variantOutput.getProcessManifest(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> com.android.build.gradle.internal.crash.ExternalApiUsageException: groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method java.io.File#<init>.
  Cannot resolve which method to invoke for [null, class java.lang.String] due to overlapping prototypes between:
        [class java.lang.String, class java.lang.String]
        [class java.io.File, class java.lang.String]

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/7.0.2/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 11s

Any suggestions as to what might be going wrong? Below is the gradle version

$ gradle --version

------------------------------------------------------------
Gradle 7.0.2
------------------------------------------------------------

Build time:   2021-05-15 17:18:17 UTC
Revision:     <unknown>

Kotlin:       1.4.31
Groovy:       3.0.7
Ant:          Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM:          1.8.0_292 (Oracle Corporation 25.292-b10)
OS:           Linux 5.12.9-1-MANJARO amd64

Am I trying to build the project incorrectly? Do you have instructions for building this project that I can follow?

Cooperation: Offline QR Code Generator Firefox add-on

I am the dev of a Firefox add-on for generating QR codes and I really like your QR code scanner/generator, because:

  1. It is, as my add-on, offline. (Okay, maybe that's still quite common in Android apps. I can assure you, in add-ons/websites, it is not.)
  2. (As part of 1.) it does not send tracking data and is FLOSS.
  3. It has a really nice icon UI and icon, in contrast to these other barcode generator apps.
  4. It works with inverted QR codes and can do useful things with the things it has scanned.

Now what?

So, however, when generating and scanning a QR code, you always need two parts: the reader and scanner. On two devices.

I mostly consider this use case: transmit some (potentially private) data from your desktop to your phone.

That's why I'd want to ask, whether we could maybe some kind of "cooperation" to suggest that we can link to each other's app/recommend it, as both things have quite common goals, IMHO. (more on that below)

What to do?

The exact details can be discussed, but I have a system to show a "random tip" to the add-on user in rare circumstances (non-annoying!). There I already have other tips included, but may also add a recommendation for your app.

Why?

Because, IMHO, the users of our software(s) will only benefit.

  • It helps no one, if you have a private QR code generator, but the QR code scanner sends the data everywhere. (and vice versa)
    So recommending a good app/add-on for the "other" part to the user, helps to increase the overall ("end-to-end") security.
  • IMHO, we both put effort into making the UI as simple as possible.
  • From my perspective: This app solves many problems (inverted QR codes) that OfflineQr users may get in trouble with. (rugk/offline-qr-code#20)
  • My add-on can also be used on Android, but I think the performance and quality of a native app cannot be matched.
  • Personally, I see your QR code generator app as the best FLOSS app, I've used. (see list at the top of this issue)

That said (potential problems):

  • Obviously, the use cases overlap, so we are "competitors", because a) my add-on works on Android and b) your app can be used to generate QR codes, too. However, as you see above, I'd still use (and I personally do use) your app on Android. Also, we're FLOSS, so it's not that we would gain anything, if people did not use the app or the add-on.
  • Problem: The platforms of our pieces of software really do not match. Obviously, this is problematic, because we cannot know whether our users use Android or Firefox.
    IMHO, this is, however, a trade-off we can accept, because it's the nature of QR codes that you want to transmit data between different platforms, devices, browsers etc.

Also, I am indeed calling for an unobtrusive way and not for big banners or so.


I am deliberately requesting this in an issue tracker publicly here, to discuss this transparently, because this is as FLOSS projects should do it. That's my opinion, at least. ๐Ÿ˜ƒ


Let me know what you think. ๐Ÿ˜ƒ

Scan area too small to fit barcodes

Some long barcodes (eg. 44 digits ITF) don't fit the little square scan area and can't be recognized. Please, consider making the area adjustable, or better yet, use the whole screen instead of limiting it to a small portion.

Make Barcode background white and add button to maximize screen brightness temporarily

So far I am really enjoying this app; thanks for developing it!

I am currently missing these two features:

  • Ability to make the barcode background white
  • Ability to temporarily increase the brightness of the screen

This will increase readability for barcode readers.

A button in the upper right corner to increase the brightness to max would be perfect.

Screenshot_20200920-190157

[Feature Request] Add Quick Settings tile

Thank you for this nice and clean app. It just does what I need.
Just one thing is missing IMHO, a tile for the Quick Settings.
This would come in handy because the scanner could be launched even from the lock screen.
It would be great if you could implement this.

[Feature request] QR code error correction

Displaying the error correction level of decoded QR codes and an option to select the error correction level when creating a QR code would be two nice additions to the app. Thank you.

German and Chinese localisations

I've been really impressed by the UI of this app. I'd now like to work on adding values for German and Chinese (my languages). I'll try to work on them in my spare time.

Regards,
Dongchen

Translation

Isn't there a plan to translate in a simpler way like translating with weblate?

Suggestion: Option to remove promotional content

Hey. Just a thought that I had: It would feel much better to have an option to remove the entries "Search on Amazon" and "Search on eBay" that come up after scanning a code. Otherwise, the app is awesome. Thanks for your work!

Autofocus only on start

It appears that the focus is only adjusted once during start, but never after. I checked Simple auto focus mode which seems to invoke autofocus at intervals of a few seconds, but every time the flash is triggered (I've seen a similar behaviour in OpenCamera when changing to the old Camera API, so I suppose that's also what the function does here), which is somewhat irritating.

I think it should be possible to get autofocus to work "normally" (not by the repeated polls through the old API), as I've tried other barcode scanners and none of them seems to have a problem with autofocus (same for OpenCamera). Version is 1.7 from F-Droid.

No app found for this action [Browser]

After scanning an EAN-13, tap on Search on the web or Open link and receiving a toast message: No app found for this action

Seems that it's searching for a search engine or so but doesn't find it. But both Amazon and eBay work well, so it's not a problem with the browser itself.

  • /e/OS 0.11, Android 7.1.2
  • Bromite browser

Manually save to history

It would be helpful to allow manually saving a barcode to history. In this way I could disable auto-saving and only save some barcodes.

Screen Rotation doesn't follow system settings

Big up for this great little app!!!

The issue (small but itchy) - UI rotates even when Screen Rotation is locked system-wide. Must either simply follow system setting (better IMO) or have a setting/button for more options in the UI.

OnePlus 6, Oreo 8.1.0

:-*

Butchers passwords

I scanned a random generated alphanumeric password.
With Android phone 1, I used "QR scanner (Privacy Friendly) 3.1.0" from F-Droid, then setup an email account in K-9.
That worked.

With Android phone 2, I scanned the exact same QR code picture with QRAndBarcodeScanner 1.1614 from F-Droid.
But K9 kept saying wrong email password. I re-scanned and re-copied it countless times.
Then I tried FairEmail client, and when pasting the password in, Fair Email warned "The password contains whitespace or control characters"
Then I installed "QR scanner (Privacy Friendly) 3.1.0" on Phone 2 and it scanned the password properly, and the password worked in K9 Email client, and when I pasted the same password into Fair email client, it didn't give any warnings.

Then, using each app, I scanned the same password (that QRAndBarcodeScanner could not handle) and copy pasted the scanned strings into an email app, and the passwords appear (to the human eye) identical. And it doesn't appear that any space is added before/after.

So I can only guess at this point, that you're copying the string in some sort of weird character encoding, or copying the string as some sort of media instead of a simple ASCII string.

It's quite shame because your app seems quite nice, but currently seems to be completely unusable for passwords.

Screen appear dim when try to scan during day time while flashlight is OFF !

Hi.

In comparision with other software, this program has strange behavior - I do not know if it is intended or it is a bug !

When I try to scan a code, during day light time, screen appear dim as if I'm at night time with dim lights so that I need frequently to switch flashlight ON to make code obvious ! This is happening during day night when other software has no such behavior ! This enforced me to switch to SecScanQR in which day night appear as day light.

Your program is very nice & has capabilities not existing in SecScanQR, but this issue + issue #41 are the chief negative points of your project.

VCard-QRs: Transfer to contacts is not taken all fields into account

Hi,

first of all: this is a great app and it's great that bugs get fixed so fast!

There are some issues when tranferring the data from a VCard-QR to my contacts (at least on Android 10 / LineageOS 17.1):

All data is recognized correctly - expect of:

  • the type of phone numbers (work, home, cell) - all phone numbers are just "voice" (but in the text you can find the type)
  • Fax numbers (which is maybe not that important)

When choosing "Add to contacts" the following fields have some issues:

  • since the type of the phone numbers is not recognized, it is also not taken over to the contacts (therefore the I'm asked to provide user defined labels)
  • Website
  • Postal address:
    • Street
    • Zipcode
    • City
    • State
    • Country

You can test it with this QR code (created with https://www.qrcode-monkey.com/#vcard)
grafik

covid qr code

Hi There,
I couldn't find much information about the data stored in the EU covid vaccine certificate QR code? I know it is signed but I could not access any relevant information with the app.

this app seems to handle this kind of qr code:
https://github.com/admin-ch/CovidCertificate-App-Android

Does anyone have more information about it?
thanks

Migrate to Maven Central?

Hi, we want to incorporate this functionality into our app which is to be deployed on F Droid. And since J Center has come to the end of its life, how about we migrate this project to support maven central?

When deleting history, don't delete favorites

When I delete history, I want to keep my favorites.
Now, they are also deleted.

What I want :
Favorites are not deleted or there is an option like in whatsapp : when selected history and favorites are deleted, when not selected only history is deleted.

With this little modification, app would be perfect. Thanks a lot :)

Turkish localization is ready

Hello,

Turkish localization is ready. Could you update the app and add the Turkish localization when you're available?

Avoid duplicates in history

It would be nice to avoid duplicates in history, so identical barcodes scanned more than once do not "polute" it with multiple entries.

Congrats!

Feel free to close this issue.

I just wanted to congratulate you, @dimitriy-ilchenko, for this app's UI and UX. Many open-source Android apps have old, complex or just plain ugly UIs. Yours is clean and simple, modern and easy to use, yet it has many features. Thanks a lot for this app, and I wish there would be more like this.

App gets rotated to landscape orientation if rotation lock is locked to portrait

I have a Xiaomi phone with MIUI, and I usually have rotation lock turned on while I don't need automatic rotation.
The way it works for me is that when I turn on the rotation lock, the system tries to enforce the rotation that was at that time for every app that has a layout for that.
Now I've been using my phone, browsing the F-droid store for any new apps (this one was an exceptionally good find, though!), and after I've seen your app, I've installed it and opened it. On opening the app started with landscape layout, and since it happened earlier with multiple apps (not much, at most 5 in the last few years), I immediately tried disabling the rotation lock, to which the app has changed to portrait orientation.
If then I turn the rotation lock back on, it will get rotated to landscape orientation again, but only for this app, so if I switch to Firefox, F-droid or any other app it will stay in portrait orientation.

One other app with this bug that I remember now is the system gallery app. If I open the app itself it's ok, but when I open a picture it gets rotated to landscape. The difference is that for some unknown reason it has it's own built-in rotation lock feature, so what I can do is turn off the system rotation lock (so the app is now in portrait), turn on the rotation lock in the app, and then if I turn the system rotation lock back on then it will stay in portrait mode.

How could I help debug the problem? I have some Android development experience, but I honestly don't have much idea on where to start debugging, other than taking a look at the manifest file to see if there's any property set to handle config changes differently

Otherwise your app is really cool! When I read the description ("QR and barcode scanner with all the features you need") I didn't want to believe it, because there are so many not so good qr scanners out there with a similar statement, but the screenshots got me to try it out, and I'm amazed! It indeed has all the features (ok, there's one thing, but it's an other issue), it looks good, and it's very small in apk size. Keep up the good work!

Feature request: interpretation/generation of EPC QR codes ("paycode") for online banking

https://de.wikipedia.org/wiki/EPC-QR-Code

European standard for SEPA bank transfers, read by banking apps to pre-fill bank transfer forms.
Widely used in Swiss invoices from authorities, bank & insurance companies,... (until 2022-09 replacing several other formats in use)... spreading in Austria and Germany.

The scanner app could read the QR code and nicely format the output (for the user to verify the data encoded in the QR code) and/or generate (valid) codes for the user (maybe storing recurring data, as in lines 1-7, for future use and on user's request).
Also, line 7 (containing the IBAN) could be validity-checked (checksum in digits 3 & 4).

Further possible checks for user convenience:

  • is only LF or CR/LF used (mixing the two is not allowed)?
  • does line 9 contain a valid value?
  • is line 10 or 11 (not both) used?
  • is line 8 (amount) correctly formatted/valid?
  • do all entries correspond to the charset used (set in line 3)?

error correction must be set to level M (15%)

Xiaomi Mi 9T App does not work

App starts, requests cam permission (which I allowed) and then gui shows up without cam picture. App freezes when I tap on any icon at the bottom of the screen. This is the error miui offers me as error report:
java.lang.IllegalStateException: Fragment i{c161323 (4461f3e0-1990-4606-ade7-e2d3e3f1c00b)} not attached to a context. at androidx.fragment.app.Fragment.requireContext(SourceFile:2) at g.a.a.e.b.a(SourceFile:1) at g.a.a.f.d.c.g.invoke(SourceFile:3) at g.a.a.f.d.c.k.a(Unknown Source:2) at g.c.a.a.b$d.run(SourceFile:7)

Suggestions

  1. Add the option when creating a location QR code, to add the current location using the GPS (needs location permission only when using the app).
  2. Add the option when creating an event QR code, to take an event from the phone's calendar (needs permission to access the calendar).
  3. Can you please approve my application for translating the app in Greek, in transifex?

Search local platforms

QrAndBarcodeScanner is a well implemented app, but, to be useful to everyone, it needs to be able to search local platforms; ebay.co.uk and amazon.co.uk, here in the UK.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.