Giter Club home page Giter Club logo

qrcodescanner's People

Contributors

rutura 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

qrcodescanner's Issues

cannot run on my phone

hie..

i m sorry but i could not run this code on my phone..
it gives me a notification saying 'Could not open your camera'

bug in android 9 Pie

i have load qr from file picture but something happened "QR Code could not be scanned"

Typo in GOT_RESULT string

The GOT_RESULT string in QrCodeActivity which is used as the key for scan result that is passed as extra data with intent has an error.

It should have been com.blikoon.qrcodescanner.got_qr_scan_result instead of com.blikoon.qrcodescanner.got_qr_scan_relult, i.e., result instead of relult.

Unknown error in few devices

Caused by: android.database.CursorIndexOutOfBoundsException:
at android.database.AbstractCursor.checkPosition (AbstractCursor.java:466)
at android.database.AbstractWindowedCursor.checkPosition (AbstractWindowedCursor.java:136)
at android.database.AbstractWindowedCursor.getString (AbstractWindowedCursor.java:50)
at android.database.CursorWrapper.getString (CursorWrapper.java:137)
at com.blikoon.qrcodescanner.QrCodeActivity.getPathFromUri (QrCodeActivity.java:390)
at com.blikoon.qrcodescanner.QrCodeActivity.onActivityResult (QrCodeActivity.java:370)
at android.app.Activity.dispatchActivityResult (Activity.java:6998)
at android.app.ActivityThread.deliverResults (ActivityThread.java:4104)

Error loading image from external storage

06-29 14:40:09.753 11228-11228/com.yoeszch.qrscan E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.yoeszch.qrscan, PID: 11228
java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=0, result=-1, data=Intent { dat=content://com.android.externalstorage.documents/document/primary:Download/1_erxqlzB_I0ExMJtHzKivJw.png flg=0x1 }} to activity {com.yoeszch.qrscan/com.blikoon.qrcodescanner.QrCodeActivity}: android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0
at android.app.ActivityThread.deliverResults(ActivityThread.java:4491)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4534)
at android.app.ActivityThread.-wrap20(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1752)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6940)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
Caused by: android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0
at android.database.AbstractCursor.checkPosition(AbstractCursor.java:460)
at android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:136)
at android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:50)
at android.database.CursorWrapper.getString(CursorWrapper.java:137)
at com.blikoon.qrcodescanner.QrCodeActivity.getPathFromUri(QrCodeActivity.java:390)
at com.blikoon.qrcodescanner.QrCodeActivity.onActivityResult(QrCodeActivity.java:370)
at android.app.Activity.dispatchActivityResult(Activity.java:7547)
at android.app.ActivityThread.deliverResults(ActivityThread.java:4487)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4534) 
at android.app.ActivityThread.-wrap20(Unknown Source:0) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1752) 
at android.os.Handler.dispatchMessage(Handler.java:105) 
at android.os.Looper.loop(Looper.java:164) 
at android.app.ActivityThread.main(ActivityThread.java:6940) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374) 

How to toggle flashlight/torch?

Is there any possibility to toggle the flashlight via code?

Maybe expose a function in QRActivity class that can allow us to toggle the flashlight programmatically instead of clicking in the camera preview? 😅

I've tried to switch on the flashlight using a utility flashlight class before launching the QRActivity (camera preview), however it always turns off the flashlight.

My flashlight util class:

class FlashlightUtil(private val context: Context) {

    fun toggleFlashlight(isOn: Boolean){
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
            val camManager: CameraManager? = context.getSystemService(Context.CAMERA_SERVICE) as CameraManager?
            var cameraId: String? = null
            try {
                cameraId = camManager?.cameraIdList?.get(0)
                camManager?.setTorchMode(cameraId!!, isOn) 
            } catch (e: CameraAccessException) {
                e.printStackTrace()
            }
        }
    }
}

Scan QR Code

i am trying to scan QR code to connect hotspot in android 11 but it dosent work

library not working

hi
i use compile 'com.github.blikoon:QRCodeScanner:0.1.2' in my project
but android studio couldnt solve this library.

My camera never open..

Once i click a button to scan this error occurred front of my screen
Notification: Could not open your camera

Picture feature not working

Loading the picture should scan the QR Code in the picture and update the caller app with info on the ui thread. Make the info readily available on the ui thread so it is usable right away

Not work in Samsung S7

It writes notification "Could not open your camera"
AFAIK it is common samsung's camera issue, should I describe more?

Migration to androidx

Im try to integrate with androidx, but after implementation i has a problem where dialog not showing any text. and it is said that reference on null value.

android.database.CursorIndexOutOfBoundsException

com.blikoon.qrcodescanner.QrCodeActivity}: android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0
at android.app.ActivityThread.deliverResults(ActivityThread.java:5368)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:5407)
at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:67)
at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2253)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7870)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
Caused by: android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0
at android.database.AbstractCursor.checkPosition(AbstractCursor.java:521)
at android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:139)
at android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:53)
at android.database.CursorWrapper.getString(CursorWrapper.java:141)
at com.blikoon.qrcodescanner.QrCodeActivity.getPathFromUri(QrCodeActivity.java:390)
at com.blikoon.qrcodescanner.QrCodeActivity.onActivityResult(QrCodeActivity.java:370)
at android.app.Activity.dispatchActivityResult(Activity.java:8388)
at android.app.ActivityThread.deliverResults(ActivityThread.java:5361)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:5407) 
at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:67) 
at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45) 
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) 
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2253) 
at android.os.Handler.dispatchMessage(Handler.java:106) 
at android.os.Looper.loopOnce(Looper.java:201) 
at android.os.Looper.loop(Looper.java:288) 
at android.app.ActivityThread.main(ActivityThread.java:7870) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003) 

Scan QR Code using Front Camera

Does this library supports switching between cameras? If yes, then how? If no, are you going to update lib w/ this functionality?

Start

Could not open camera

Change the color of header?

How can we change the color of header on the camera screen using this library?

Can we change that?

Please help.

High failling rate to decode from gallery

Hi,
I use 2 android phone for this test case.
1st phone use Camera to scan 2nd phone screen QR code (125x125 resolution) from gallery that is using image view to preview it and is fixed size to (125x125 dp) (dp is equivalent to px).
2nd phone scan the QR code (125x125 resolution) from gallery.

Based on this method, they should be having the size of QR code to scan. (Correct me if I'm wrong.)

Result
1st phone always success
2nd phone will fail in some QR Code Picture.

Is there any solution to this?

Improve the overall ui

  • Change the color of the angles

  • Change the icons

  • Change position of texts for better results

Capture image in QrCodeActivity

i want to add capture image functionality in qecodeactivity class with additional button , can you provide the code for that ... the camera module doesnot seem to have it .

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.