Android App Inventor条形码扫描

问题描述 投票:0回答:1

所以我看到有很多关于Android应用程序中条形码扫描的问题,但这个问题与App Inventor中的条形码扫描有关。

我按照我在网上找到的教程创建条形码扫描应用程序,按下按钮,启动扫描仪,然后根据结果,屏幕上的第二个按钮启动一个带有传递变量的URL。我自己在App Inventor中开发了应用程序,所以我可以根据自己的需要对其进行修改,但是我遇到了一个问题。条形码扫描器启动,成功扫描(产品发现确认),但是在返回主屏幕时,resultLabel.Text值不会更改,也不会是resultActionButton.Text值。下面是我的应用程序的框图和我所遵循的教程的链接。

先感谢您!

这是框图图像:

链接到教程:http://androidadvice.blogspot.com/2010/09/app-inventor-sample-project-barcode.html

android barcode-scanner app-inventor
1个回答
0
投票

尝试通过tinydb传递数据。例如,afterscan事件> tinydb1.storevalue标记:resultLabel(desired_text)值存储:结果集resultLabel.text到tinydb1.getvalue标记:resultLabel(desired_text)和notifier1.showalert文本:启动afterscan活动;这样你就知道事件正在被调用

© www.soinside.com 2019 - 2024. All rights reserved.