Zxing change the action intent?

I've already answered this a few times on the mailing list. As I said, you need to pay attention to ActivityNotFoundException .

Up vote 0 down vote favorite share g+ share fb share tw.

I added the Zxing library to my android app but there is a problem. When you already have a bar code scanner installed it presents you with a popup. I don't want this to happen and changed the the action intent.

This is working, but when I open my app for the first time and select the bar code scanner it crashes. When I open it for the second time everything works fine. Can anybody please help me?

Android zxing link|improve this question asked Sep 27 '11 at 13:52Daniel528 100% accept rate.

Post the crash log. – Yashwanth Kumar Sep 27 '11 at 14:02 Can can see the crash log here: everybodylikespenguins. Nl/log.

Txt – Daniel Sep 27 '11 at 15:03.

I've already answered this a few times on the mailing list. As I said, you need to pay attention to ActivityNotFoundException. 09-27 16:52:54.046 E/AndroidRuntime( 4949): Caused by: android.content.

ActivityNotFoundException: Unable to find explicit activity class {nl. Everybodylikespenguins/com.google.zxing.client.android. HelpActivity}; have you declared this activity in your AndroidManifest.

Xml? 09-27 16:52:54.046 E/AndroidRuntime( 4949): at android.app.Instrumentation. CheckStartActivityResult(Instrumentation.

Java:1404) 09-27 16:52:54.046 E/AndroidRuntime( 4949): at android.app.Instrumentation. ExecStartActivity(Instrumentation. Java:1378) 09-27 16:52:54.046 E/AndroidRuntime( 4949): at android.app.Activity.

StartActivityForResult(Activity. Java:2789) 09-27 16:52:54.046 E/AndroidRuntime( 4949): at android.app.Activity. StartActivity(Activity.

Java:2895) 09-27 16:52:54.046 E/AndroidRuntime( 4949): at com.google.zxing.client.android.CaptureActivity. ShowHelpOnFirstLaunch(CaptureActivity. Java:595) 09-27 16:52:54.046 E/AndroidRuntime( 4949): at com.google.zxing.client.android.CaptureActivity.

OnCreate(CaptureActivity. Java:169) 09-27 16:52:54.046 E/AndroidRuntime( 4949): at android.app.Instrumentation. CallActivityOnCreate(Instrumentation.

Java:1047) 09-27 16:52:54.046 E/AndroidRuntime( 4949): at android.app.ActivityThread. PerformLaunchActivity(ActivityThread. Java:2544) Android throws this when you start an intent for which there is no app, and that's what's happening here.

You need to handle this yourself by catching the exception and, maybe, sending the user to Market to download. This is exactly what the code in android-integration in zxing does, which is why I also already told you to look at that.

I've got it working now, you where right it was looking for the "HelpActivity". Thx for pointing me in the right direction! – Daniel Sep 30 '11 at 7:39.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions