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.
Start the Scan activity using
startActivityForResult
Then implement theonActivityResult
method to receive the result.Refer https://stackoverflow.com/a/5604598/630668 and http://campevans.net/getting-zxing-into-an-existing-android-applic