[英]Get callBack from Goggles
I know that there are not an API for google toggle. 我知道Google切换没有API。 But it listen to com.google.zxing.client.android.SCAN
但是它会监听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 the onActivityResult
method to receive the result. 使用
startActivityForResult
启动扫描活动,然后实现onActivityResult
方法以接收结果。
Refer https://stackoverflow.com/a/5604598/630668 and http://campevans.net/getting-zxing-into-an-existing-android-applic 请参阅https://stackoverflow.com/a/5604598/630668和http://campevans.net/getting-zxing-into-an-existing-android-applic
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.