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

  • SEARCH
  • Home
  • 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 8067569
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T12:21:33+00:00 2026-06-05T12:21:33+00:00

I am developing a barcode scanning app and using Zxing as the barcode scanner.

  • 0

I am developing a barcode scanning app and using Zxing as the barcode scanner. My app sends an intent to Zxing which fires up and allows me to scan a barcode but … I can’t get any data back. I don’t the the barcode numbers returned to my app so I can use them in my code.

The following is my code:

public class ScaningActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);        

Intent scanIntent = new Intent("com.google.zxing.client.android.SCAN");
    scanIntent.putExtra("com.google.zxing.client.android.SCAN.SCAN_MODE", "QR_CODE_MODE");
    startActivityForResult(scanIntent, 0);

}//close onCreate
    public void onActivityResult(int requestCode, int resultCode, Intent intent) {
      IntentResult scanResult = IntentIntegrator.parseActivityResult(requestCode, resultCode, intent);
      if (scanResult != null) {
        // handle scan result
        Log.e("DATA", "TESTING SCAN RESULT : " + scanResult.toString());
      }else{
          Log.d("DATA", "NO SCAN RESULTS : ");// + scanResult.getFormatName());//scanResult.getContents());
      }
      // else continue with any other code you need in the method
      Log.i("DATA", "Continuing after scan result");
      Log.d("DATA", "requestCode : " + requestCode);
      Log.d("DATA", "resultCode : " + resultCode);
      Log.d("DATA", "intent : " + intent);
    }
}//close ScaningActivity

In the onActivityResult function, I get the NO SCAN RESULTS message.

What am I doing wrong?

  • 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-05T12:21:34+00:00Added an answer on June 5, 2026 at 12:21 pm

    Don’t try to do this all yourself, because you are doing it wrong. In particular you are not sending the Intent correctly. Please also use IntentIntegrator for this.

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

Sidebar

Related Questions

I am using Zxing client for developing BarCode Scanner for android. But I guess
Am developing sample barcode scanner app. I using ZBar API to scan the barcode
I developing Barcode Scanner sample app in iPhone. Am using ZBar framework in iphone,
I am developing an app which uses barcode to get the product information of
I am developing an application which will be used to scan the barcode from
I am developing windows mobile application to scan a product barcode by using in
I'm interested in developing an app for iPhone that can scan and read ITF
I'm using a barcode font (IDAutomationMC39H) in an SSRS 2005 report I'm developing, and
I am developing an application which generates barcodes, I want to print them but
I am developing for a tablet using Android 2.2. I have a form which

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.