Get callBack from Goggles

607 Views Asked by At

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.

1

There are 1 best solutions below

2
On

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