Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scan button make app crash #42

Open
giorgosioak opened this issue Oct 8, 2021 · 0 comments
Open

Scan button make app crash #42

giorgosioak opened this issue Oct 8, 2021 · 0 comments

Comments

@giorgosioak
Copy link

Device:

Xiaomi Poco F1
Havoc OS - Android 11


What is wrong:

I believe you app tries to open intent to camera to capture the image of the document.

I only have Google Camera installed and i believe it does not respond to camera intent.

If that's the case what would be nice to allow me to take pictures first and then select from files inside your app as suggested at issue #36 .


Crash Log:

time: 1633726518171
msg: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.media.action.IMAGE_CAPTURE flg=0x3 clip={text/uri-list {...}} (has extras) }
stacktrace: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.babanomania.pdfscanner/com.scanlibrary.ScanActivity}: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.media.action.IMAGE_CAPTURE flg=0x3 clip={text/uri-list {...}} (has extras) }
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3432)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3596)
	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
	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:2067)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loop(Looper.java:223)
	at android.app.ActivityThread.main(ActivityThread.java:7669)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
Caused by: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.media.action.IMAGE_CAPTURE flg=0x3 clip={text/uri-list {...}} (has extras) }
	at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2073)
	at android.app.Instrumentation.execStartActivity(Instrumentation.java:1872)
	at android.app.Activity.startActivityForResult(Activity.java:6032)
	at android.app.Activity.startActivityFromFragment(Activity.java:6010)
	at android.app.Activity$HostCallbacks.onStartActivityFromFragment(Activity.java:8819)
	at android.app.Fragment.startActivityForResult(Fragment.java:1121)
	at android.app.Fragment.startActivityForResult(Fragment.java:1110)
	at com.scanlibrary.PickImageFragment.openCamera(PickImageFragment.java:137)
	at com.scanlibrary.PickImageFragment.handleIntentPreference(PickImageFragment.java:85)
	at com.scanlibrary.PickImageFragment.init(PickImageFragment.java:66)
	at com.scanlibrary.PickImageFragment.onCreateView(PickImageFragment.java:56)
	at android.app.Fragment.performCreateView(Fragment.java:2505)
	at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1303)
	at android.app.FragmentManagerImpl.addAddedFragments(FragmentManager.java:2431)
	at android.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2210)
	at android.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2166)
	at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2067)
	at android.app.FragmentManagerImpl.dispatchMoveToState(FragmentManager.java:3057)
	at android.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:3004)
	at android.app.FragmentController.dispatchActivityCreated(FragmentController.java:184)
	at android.app.Activity.performCreate(Activity.java:8002)
	at android.app.Activity.performCreate(Activity.java:7978)
	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1315)
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3405)
	... 11 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant