Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8664865
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T17:20:35+00:00 2026-06-12T17:20:35+00:00

I want to create an application to generate a barcode USing Zxing as library.

  • 0

I want to create an application to generate a barcode USing Zxing as library.
I want an barcode Image. I ahve used the following code im my main project.

Intent intent = new Intent("com.google.zxing.client.android.Intents.Encode"); 
intent.setPackage("com.google.zxing.client.android");
intent.addCategory(Intent.CATEGORY_DEFAULT); 
intent.putExtra("ENCODE_FORMAT", "CODE_128");  
intent.putExtra("ENCODE_DATA", "12345678912");
startActivity(intent);

But it is giving error:

10-04 12:54:27.305: E/AndroidRuntime(399): FATAL EXCEPTION: main
10-04 12:54:27.305: E/AndroidRuntime(399): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.google.zxing.client.android.Intents.Encode pkg=com.google.zxing.client.android (has extras) }
    10-04 12:54:27.305: E/AndroidRuntime(399):  at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1408)
    10-04 12:54:27.305: E/AndroidRuntime(399):  at android.app.Instrumentation.execStartActivity(Instrumentation.java:1378)
    10-04 12:54:27.305: E/AndroidRuntime(399):  at android.app.Activity.startActivityForResult(Activity.java:2817)
    10-04 12:54:27.305: E/AndroidRuntime(399):  at android.support.v4.app.FragmentActivity.startActivityFromFragment(FragmentActivity.java:672)
    10-04 12:54:27.305: E/AndroidRuntime(399):  at android.support.v4.app.Fragment.startActivity(Fragment.java:747)
    10-04 12:54:27.305: E/AndroidRuntime(399):  at com.check.MyFragment.onResume(MyFragment.java:62)
    10-04 12:54:27.305: E/AndroidRuntime(399):  at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:891)
    10-04 12:54:27.305: E/AndroidRuntime(399):  at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1053)
    10-04 12:54:27.305: E/AndroidRuntime(399):  at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:622)
    10-04 12:54:27.305: E/AndroidRuntime(399):  at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1371)
    10-04 12:54:27.305: E/AndroidRuntime(399):  at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:418)
    10-04 12:54:27.305: E/AndroidRuntime(399):  at android.os.Handler.handleCallback(Handler.java:587)
    10-04 12:54:27.305: E/AndroidRuntime(399):  at android.os.Handler.dispatchMessage(Handler.java:92)
    10-04 12:54:27.305: E/AndroidRuntime(399):  at android.os.Looper.loop(Looper.java:123)
    10-04 12:54:27.305: E/AndroidRuntime(399):  at android.app.ActivityThread.main(ActivityThread.java:4627)
    10-04 12:54:27.305: E/AndroidRuntime(399):  at java.lang.reflect.Method.invokeNative(Native Method)
    10-04 12:54:27.305: E/AndroidRuntime(399):  at java.lang.reflect.Method.invoke(Method.java:521)
    10-04 12:54:27.305: E/AndroidRuntime(399):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
    10-04 12:54:27.305: E/AndroidRuntime(399):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
    10-04 12:54:27.305: E/AndroidRuntime(399):  at dalvik.system.NativeStart.main(Native Method)

I have declared activity in manifest also.

<activity
    android:name="com.google.zxing.client.android.CaptureActivity"
    android:configChanges="orientation|keyboardHidden"
    android:screenOrientation="portrait"
    android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
    android:windowSoftInputMode="stateAlwaysHidden" >
    <intent-filter>
        <action android:name="com.google.zxing.client.android.SCAN" />
        <category android:name="android.intent.category.DEFAULT" />
    </intent-filter>
</activity>

Please let me know if I am missing something here.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T17:20:36+00:00Added an answer on June 12, 2026 at 5:20 pm

    Î would say, you should declare the Encode Activity in your Manifest. Something like this:

    <activity android:name=".encode.EncodeActivity"
              android:label="@string/share_name"
              android:stateNotNeeded="true">
      <intent-filter>
        <action android:name="com.google.zxing.client.android.ENCODE"/>
        <category android:name="android.intent.category.DEFAULT"/>
      </intent-filter>
      <!-- This allows us to handle the Share button in Contacts. -->
      <intent-filter>
        <action android:name="android.intent.action.SEND"/>
        <category android:name="android.intent.category.DEFAULT"/>
        <data android:mimeType="text/x-vcard"/>
      </intent-filter>
      <!-- This allows us to handle sharing any plain text . -->
      <intent-filter>
        <action android:name="android.intent.action.SEND"/>
        <category android:name="android.intent.category.DEFAULT"/>
        <data android:mimeType="text/plain"/>
      </intent-filter>
    </activity>
    

    If you try to ship the ZXing Code in your App, please be aware that this could cause some odd behaviour in your App if a user has the normal ZXing App already installed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to generate android device unique id for my android application to create
I want to create an application which main window has canvas (or something where
I'm trying to create web application in eclipse. I want Eclipse to generate .class
I want to create an application using php and mysql. Assume i am making
I want to allow our main application to generate document files that can be
I have been trying to create a basic rails application. I used generate to
I want create an application with animate button? how can i do? after click
I want to create application which would display spatial data on Map. I'm thinking
I want to create an application with JayData + WCF/RIA Services but i need
I want to create my Application directory to save my configuration file. but blackberry

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.