1

I know that there are not an API for google toggle. But it listen to com.google.zxing.client.android.SCAN
So with

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

i can open goggles app. My question is,
it is possible to get callback in my app?
i want to process on the text result.
Thx.

rmtheis
  • 5,992
  • 12
  • 61
  • 78
Omar Kam
  • 111
  • 5

1 Answers1

1

Start the Scan activity using startActivityForResult Then implement the onActivityResult method to receive the result.

Refer https://stackoverflow.com/a/5604598/630668 and http://campevans.net/getting-zxing-into-an-existing-android-applic

Community
  • 1
  • 1
Dharmendra
  • 33,296
  • 22
  • 86
  • 129