android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.google.zxing.client.android.SCAN (has extras) }

3,822 views
Skip to first unread message

Ahmed Shoeib

unread,
Sep 27, 2010, 7:31:45 AM9/27/10
to zxing

how to fix this Error
android.content.ActivityNotFoundException: No Activity found to handle
Intent { act=com.google.zxing.client.android.SCAN (has extras) }

the detailed Error


09-27 14:12:50.973: ERROR/AndroidRuntime(255): Uncaught handler:
thread main exiting due to uncaught exception
09-27 14:12:51.013: ERROR/AndroidRuntime(255):
android.content.ActivityNotFoundException: No Activity found to handle
Intent { act=com.google.zxing.client.android.SCAN (has extras) }
09-27 14:12:51.013: ERROR/AndroidRuntime(255): at
android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:
1408)
09-27 14:12:51.013: ERROR/AndroidRuntime(255): at
android.app.Instrumentation.execStartActivity(Instrumentation.java:
1378)
09-27 14:12:51.013: ERROR/AndroidRuntime(255): at
android.app.Activity.startActivityForResult(Activity.java:2749)
09-27 14:12:51.013: ERROR/AndroidRuntime(255): at
com.google.zxing.client.androidtest.ZXingTestActivity
$5.onClick(ZXingTestActivity.java:136)
09-27 14:12:51.013: ERROR/AndroidRuntime(255): at
android.view.View.performClick(View.java:2364)
09-27 14:12:51.013: ERROR/AndroidRuntime(255): at
android.view.View.onTouchEvent(View.java:4179)
09-27 14:12:51.013: ERROR/AndroidRuntime(255): at
android.widget.TextView.onTouchEvent(TextView.java:6540)
09-27 14:12:51.013: ERROR/AndroidRuntime(255): at
android.view.View.dispatchTouchEvent(View.java:3709)
09-27 14:12:51.013: ERROR/AndroidRuntime(255): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
09-27 14:12:51.013: ERROR/AndroidRuntime(255): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
09-27 14:12:51.013: ERROR/AndroidRuntime(255): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
09-27 14:12:51.013: ERROR/AndroidRuntime(255): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
09-27 14:12:51.013: ERROR/AndroidRuntime(255): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
09-27 14:12:51.013: ERROR/AndroidRuntime(255): at
com.android.internal.policy.impl.PhoneWindow
$DecorView.superDispatchTouchEvent(PhoneWindow.java:1659)
09-27 14:12:51.013: ERROR/AndroidRuntime(255): at
com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:
1107)
09-27 14:12:51.013: ERROR/AndroidRuntime(255): at
android.app.Activity.dispatchTouchEvent(Activity.java:2061)
09-27 14:12:51.013: ERROR/AndroidRuntime(255): at
com.android.internal.policy.impl.PhoneWindow
$DecorView.dispatchTouchEvent(PhoneWindow.java:1643)
09-27 14:12:51.013: ERROR/AndroidRuntime(255): at
android.view.ViewRoot.handleMessage(ViewRoot.java:1691)
09-27 14:12:51.013: ERROR/AndroidRuntime(255): at
android.os.Handler.dispatchMessage(Handler.java:99)
09-27 14:12:51.013: ERROR/AndroidRuntime(255): at
android.os.Looper.loop(Looper.java:123)
09-27 14:12:51.013: ERROR/AndroidRuntime(255): at
android.app.ActivityThread.main(ActivityThread.java:4363)
09-27 14:12:51.013: ERROR/AndroidRuntime(255): at
java.lang.reflect.Method.invokeNative(Native Method)
09-27 14:12:51.013: ERROR/AndroidRuntime(255): at
java.lang.reflect.Method.invoke(Method.java:521)
09-27 14:12:51.013: ERROR/AndroidRuntime(255): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:860)
09-27 14:12:51.013: ERROR/AndroidRuntime(255): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
09-27 14:12:51.013: ERROR/AndroidRuntime(255): at
dalvik.system.NativeStart.main(Native Method)



thanks ,
ahmed shoeib
software developer

Sean Owen

unread,
Sep 27, 2010, 7:48:49 AM9/27/10
to zxing
You are invoking an Intent for which there is no app to handle it
(SCAN). It means Barcode Scanner is not installed. You need to handle
this exception. Please see http://code.google.com/p/zxing/wiki/ScanningViaIntent
for how to do this easily and correctly.

On Sep 27, 12:31 pm, Ahmed Shoeib <ahmedelsayed.sho...@gmail.com>
wrote:

Sean Owen

unread,
Jan 5, 2013, 7:42:10 PM1/5/13
to zx...@googlegroups.com
Yes, you write your own application then.
Reply all
Reply to author
Forward
0 new messages