4

Possible Duplicate:
Google goggles API

According to Google, Goggles now supports barcode scanning via intents. So how would I launch this intent? Apart from it being mentioned on the app store site there's no info whatsoever :(

Am I missing something trivial here?

Community
  • 1
  • 1
Tom
  • 43
  • 1
  • 3
  • 1
    I don't agree with this being closed, as the answer accepted here is completely different to the 'rumour' blog post mentioned in the accepted answer for the linked question. – David Snabel-Caunt Oct 18 '11 at 14:50

1 Answers1

5

There are a number of ways, according to the Goggles manifest.

The app listens for the following intent:

Intent intent = new Intent("com.google.zxing.client.android.SCAN");
startActivity(intent);

This is the code you're looking for, which is basically the same information provided by ZXing.

As an aside, you can also use a VIEW intent with path http://www.google.com/m/products/scan though this will offer both the browser and Goggles as handlers for the uri. This webpage actually recommends installing zxing's barcode scanner rather than Google Goggles.

David Snabel-Caunt
  • 57,804
  • 13
  • 114
  • 132
  • 1
    thanks, that should do the trick, however it is odd that they name it the same as the ZXing's one. Maybe to choose the scanner upon scanning – Tom Oct 17 '11 at 20:11
  • 1
    Likely, and ZXing seems to have some relationship to Google. Either they created the project, or one of their developers is involved. There's a couple of @google.com addresses in the members list. – David Snabel-Caunt Oct 17 '11 at 20:18